Show raw html in case of something went wrong (IOS-152)
Co-authored-by: Jed Fox <git@jedfox.com>
This commit is contained in:
parent
0fbe54d368
commit
f3becbec3f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user