Show raw html in case of something went wrong (IOS-152)

Co-authored-by: Jed Fox <git@jedfox.com>
This commit is contained in:
Nathan Mattes 2023-05-05 15:19:46 +02:00 committed by GitHub
parent 0fbe54d368
commit f3becbec3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ extension Text {
documentAttributes: nil) {
attributedString = attrString
} else {
attributedString = NSAttributedString()
attributedString = NSAttributedString(string: htmlString)
}
self.init(AttributedString(attributedString)) // uses the NSAttributedString initializer