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) {
|
documentAttributes: nil) {
|
||||||
attributedString = attrString
|
attributedString = attrString
|
||||||
} else {
|
} else {
|
||||||
attributedString = NSAttributedString()
|
attributedString = NSAttributedString(string: htmlString)
|
||||||
}
|
}
|
||||||
|
|
||||||
self.init(AttributedString(attributedString)) // uses the NSAttributedString initializer
|
self.init(AttributedString(attributedString)) // uses the NSAttributedString initializer
|
||||||
|
|
Loading…
Reference in New Issue