mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
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…
x
Reference in New Issue
Block a user