]> git.wh0rd.org Git - tt-rss.git/commitdiff
mobile: sanitize article content
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 18 May 2007 07:14:44 +0000 (08:14 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 18 May 2007 07:14:44 +0000 (08:14 +0100)
functions.php
mobile/functions.php
tt-rss.css

index e316f74f557e8934384c0480a7b9403042a9e28a..62f0cdd028a0926eb8df4bd0568f69fc26fabbe6 100644 (file)
                }
        }
 
-       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>");
                }
 
index 86a07bd1014a6e55dcf024cdc756ca84b3272784..bec74d180b8e8de576af910c9681fc88c7a98bf9 100644 (file)
                                print "<div class=\"postTags\">Tags: $tags_str</div>";
                        }
 
-                       print $line["content"]
+                       print sanitize_rss($link, $line["content"], true);
                
                }
 
index 1956e14d96e00cc68b0f4f79ad9553abae636519..bd843c59efb41b83c92d1cb7ee08bd1974c3e0f9 100644 (file)
@@ -1569,3 +1569,5 @@ a.helpLinkPic img {
 li.feedCatHolder {
        display : inline;
 }
+
+