mobile: sanitize article content

This commit is contained in:
Andrew Dolgov 2007-05-18 08:14:44 +01:00
parent 0dba8103fa
commit 1ac0baf4ea
3 changed files with 5 additions and 3 deletions

View file

@ -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>");
}

View file

@ -769,7 +769,7 @@
print "<div class=\"postTags\">Tags: $tags_str</div>";
}
print $line["content"];
print sanitize_rss($link, $line["content"], true);;
}

View file

@ -1569,3 +1569,5 @@ a.helpLinkPic img {
li.feedCatHolder {
display : inline;
}