From 5acc08b980dd3eff9dc6ef2139396fb83bc573b7 Mon Sep 17 00:00:00 2001 From: Tomohiro Kumagai Date: Tue, 2 Mar 2021 00:51:03 +0900 Subject: [PATCH] Move method implementations of `HTMLString` from `String` to `StringProtocol`. --- Sources/HTMLString/HTMLString.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/HTMLString/HTMLString.swift b/Sources/HTMLString/HTMLString.swift index ef1895c..69ab79f 100644 --- a/Sources/HTMLString/HTMLString.swift +++ b/Sources/HTMLString/HTMLString.swift @@ -2,7 +2,7 @@ import Foundation // MARK: Escaping -extension String { +extension StringProtocol { /// /// Returns a copy of the current `String` where every character incompatible with HTML Unicode @@ -78,7 +78,7 @@ extension String { // MARK: - Unescaping -extension String { +extension StringProtocol { /// /// Replaces every HTML entity in the receiver with the matching Unicode character.