Re-add use of custom initializer

This commit is contained in:
Nate Weaver 2020-04-30 02:49:46 -05:00
parent 074cad019b
commit 7297bf837d

View File

@ -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
}