escape title HTML in web view. Issue #722
This commit is contained in:
parent
f4e0cfaf2b
commit
a087410177
|
@ -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
|
Loading…
Reference in New Issue