diff --git a/Shared/Article Rendering/ArticleRenderer.swift b/Shared/Article Rendering/ArticleRenderer.swift index 7643b1091..c37b49793 100644 --- a/Shared/Article Rendering/ArticleRenderer.swift +++ b/Shared/Article Rendering/ArticleRenderer.swift @@ -86,10 +86,11 @@ private extension ArticleRenderer { } func titleOrTitleLink() -> String { + let escapedTitle = title.escapeHTML() if let link = article?.preferredLink { - return title.htmlByAddingLink(link) + return escapedTitle.htmlByAddingLink(link) } - return title + return escapedTitle } func substitutions() -> [String: String] { diff --git a/submodules/RSWeb b/submodules/RSWeb index 59685e506..f6bfc2bc7 160000 --- a/submodules/RSWeb +++ b/submodules/RSWeb @@ -1 +1 @@ -Subproject commit 59685e50640cd4629294bf2c0d63193ffa4ccc74 +Subproject commit f6bfc2bc74923d800c1e8c8e997009c81aec8f20