diff --git a/functions.php b/functions.php index e316f74f5..62f0cdd02 100644 --- a/functions.php +++ b/functions.php @@ -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, "


"); } diff --git a/mobile/functions.php b/mobile/functions.php index 86a07bd10..bec74d180 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -769,7 +769,7 @@ print "
Tags: $tags_str
"; } - print $line["content"]; + print sanitize_rss($link, $line["content"], true);; } diff --git a/tt-rss.css b/tt-rss.css index 1956e14d9..bd843c59e 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -1569,3 +1569,5 @@ a.helpLinkPic img { li.feedCatHolder { display : inline; } + +