Re-add use of custom initializer

This commit is contained in:
Nate Weaver committed 2020-05-01 01:42:43 -05:00
1 parent 074cad019b
commit 7297bf837d
1 file changed
+1 -2
@@ -85,8 +85,7 @@ struct ArticleStringFormatter {
static func attributedTruncatedTitle(_ article: Article) -> NSAttributedString {
let title = truncatedTitle(article, forHTML: true)
let data = title.data(using: .utf8)!
let attributed = NSAttributedString(html: data, documentAttributes: nil)!
let attributed = NSAttributedString(html: title)
return attributed
}