mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 22:05:56 +00:00
mobile: sanitize article content
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user