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

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