mobile: sanitize article content
This commit is contained in:
parent
0dba8103fa
commit
1ac0baf4ea
3 changed files with 5 additions and 3 deletions
|
@ -2637,10 +2637,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
function sanitize_rss($link, $str) {
|
||||
function sanitize_rss($link, $str, $force_strip_tags = false) {
|
||||
$res = $str;
|
||||
|
||||
if (get_pref($link, "STRIP_UNSAFE_TAGS")) {
|
||||
if (get_pref($link, "STRIP_UNSAFE_TAGS") || $force_strip_tags) {
|
||||
$res = strip_tags($res, "<p><a><i><em><b><strong><blockquote><br><img>");
|
||||
}
|
||||
|
||||
|
|
|
@ -769,7 +769,7 @@
|
|||
print "<div class=\"postTags\">Tags: $tags_str</div>";
|
||||
}
|
||||
|
||||
print $line["content"];
|
||||
print sanitize_rss($link, $line["content"], true);;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -1569,3 +1569,5 @@ a.helpLinkPic img {
|
|||
li.feedCatHolder {
|
||||
display : inline;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue