mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Re-add use of custom initializer
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user