mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-22 08:10:59 +00:00
Fix nbsp
This commit is contained in:
parent
0ace1ad0fc
commit
a7dc1eb1f1
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue