From 276a415098eaa5f8214267b35ba7f717674c9a1a Mon Sep 17 00:00:00 2001 From: Toni Sevener Date: Thu, 1 Aug 2024 16:35:53 -0500 Subject: [PATCH] Fix featured article --- Widgets/Widgets/FeaturedArticleWidget.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Widgets/Widgets/FeaturedArticleWidget.swift b/Widgets/Widgets/FeaturedArticleWidget.swift index 11d8d1c9d33..647df01e567 100644 --- a/Widgets/Widgets/FeaturedArticleWidget.swift +++ b/Widgets/Widgets/FeaturedArticleWidget.swift @@ -40,9 +40,9 @@ struct FeaturedArticleEntry: TimelineEntry { return content?.languageCode } - var title: String { - return (content?.displayTitle as NSString?)?.wmf_stringByRemovingHTML() ?? "" - } + var title: String { + return content?.displayTitle.removingHTML ?? "" + } var description: String { return content?.description ?? ""