escape title HTML in web view. Issue #722

This commit is contained in:
Maurice Parker 2019-06-07 15:53:13 -05:00
parent f4e0cfaf2b
commit a087410177
2 changed files with 4 additions and 3 deletions

View File

@ -86,10 +86,11 @@ private extension ArticleRenderer {
} }
func titleOrTitleLink() -> String { func titleOrTitleLink() -> String {
let escapedTitle = title.escapeHTML()
if let link = article?.preferredLink { if let link = article?.preferredLink {
return title.htmlByAddingLink(link) return escapedTitle.htmlByAddingLink(link)
} }
return title return escapedTitle
} }
func substitutions() -> [String: String] { func substitutions() -> [String: String] {

@ -1 +1 @@
Subproject commit 59685e50640cd4629294bf2c0d63193ffa4ccc74 Subproject commit f6bfc2bc74923d800c1e8c8e997009c81aec8f20