mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-10 10:31:01 +02:00
mobile: sanitize article content
This commit is contained in:
parent
0dba8103fa
commit
1ac0baf4ea
@ -2637,10 +2637,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function sanitize_rss($link, $str) {
|
function sanitize_rss($link, $str, $force_strip_tags = false) {
|
||||||
$res = $str;
|
$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>");
|
$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 "<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 {
|
li.feedCatHolder {
|
||||||
display : inline;
|
display : inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user