Fix nbsp
This commit is contained in:
parent
0ace1ad0fc
commit
a7dc1eb1f1
|
@ -59,7 +59,8 @@ private final class HTMLParser: NSObject {
|
||||||
|
|
||||||
init(string: String) {
|
init(string: String) {
|
||||||
rawString = Self.openingContainerTag
|
rawString = Self.openingContainerTag
|
||||||
.appending(string.replacingOccurrences(of: "<br>", with: "<br/>"))
|
.appending(string.replacingOccurrences(of: "<br>", with: "<br/>")
|
||||||
|
.replacingOccurrences(of: " ", with: " "))
|
||||||
.appending(Self.closingContainerTag)
|
.appending(Self.closingContainerTag)
|
||||||
parser = XMLParser(data: Data(rawString.utf8))
|
parser = XMLParser(data: Data(rawString.utf8))
|
||||||
parseStopColumn = rawString.count - Self.closingContainerTag.count
|
parseStopColumn = rawString.count - Self.closingContainerTag.count
|
||||||
|
|
Loading…
Reference in New Issue