diff --git a/Mastodon/Sources/Mastodon/Entities/HTML.swift b/Mastodon/Sources/Mastodon/Entities/HTML.swift index c76caa4..a8327be 100644 --- a/Mastodon/Sources/Mastodon/Entities/HTML.swift +++ b/Mastodon/Sources/Mastodon/Entities/HTML.swift @@ -59,7 +59,8 @@ private final class HTMLParser: NSObject { init(string: String) { rawString = Self.openingContainerTag - .appending(string.replacingOccurrences(of: "
", with: "
")) + .appending(string.replacingOccurrences(of: "
", with: "
") + .replacingOccurrences(of: " ", with: " ")) .appending(Self.closingContainerTag) parser = XMLParser(data: Data(rawString.utf8)) parseStopColumn = rawString.count - Self.closingContainerTag.count