This commit is contained in:
Justin Mazzocchi 2021-02-21 16:04:46 -08:00
parent 0ace1ad0fc
commit a7dc1eb1f1
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ private final class HTMLParser: NSObject {
init(string: String) {
rawString = Self.openingContainerTag
.appending(string.replacingOccurrences(of: "<br>", with: "<br/>"))
.appending(string.replacingOccurrences(of: "<br>", with: "<br/>")
.replacingOccurrences(of: "&nbsp;", with: " "))
.appending(Self.closingContainerTag)
parser = XMLParser(data: Data(rawString.utf8))
parseStopColumn = rawString.count - Self.closingContainerTag.count