Re-add use of custom initializer
This commit is contained in:
parent
074cad019b
commit
7297bf837d
@ -85,8 +85,7 @@ struct ArticleStringFormatter {
|
|||||||
|
|
||||||
static func attributedTruncatedTitle(_ article: Article) -> NSAttributedString {
|
static func attributedTruncatedTitle(_ article: Article) -> NSAttributedString {
|
||||||
let title = truncatedTitle(article, forHTML: true)
|
let title = truncatedTitle(article, forHTML: true)
|
||||||
let data = title.data(using: .utf8)!
|
let attributed = NSAttributedString(html: title)
|
||||||
let attributed = NSAttributedString(html: data, documentAttributes: nil)!
|
|
||||||
return attributed
|
return attributed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user