diff options
-rw-r--r-- | functions.php | 4 | ||||
-rw-r--r-- | mobile/functions.php | 2 | ||||
-rw-r--r-- | tt-rss.css | 2 |
3 files changed, 5 insertions, 3 deletions
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, "<p><a><i><em><b><strong><blockquote><br><img>"); } 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 "<div class=\"postTags\">Tags: $tags_str</div>"; } - 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; } + + |