mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-18 12:28:37 +01:00
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 {
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user