]> git.wh0rd.org Git - tt-rss.git/commitdiff
cleanup sanitize_rss()
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 May 2007 07:13:11 +0000 (08:13 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 May 2007 07:13:11 +0000 (08:13 +0100)
functions.php

index 5e43a5677432107d937d2ef7644dfc8ca2f6cb7d..9bd79629e4ec7a3bf8dc78990fa659ae94a88c1e 100644 (file)
        function sanitize_rss($link, $str) {
                $res = $str;
 
-/*             $res = preg_replace('/<script.*?>/i', 
-                       "<p class=\"scriptWarn\">Disabled script: ", $res);
-
-               $res = preg_replace('/<\/script.*?>/i', "</p>", $res); */
-
-/*             $res = preg_replace('/<embed.*?>/i', "", $res);
-
-               $res = preg_replace('/<object.*?>.*?<\/object>/i', 
-                       "<p class=\"objectWarn\">(Disabled html object 
-                       - flash or other embedded content)</p>", $res);  */
-
                if (get_pref($link, "STRIP_UNSAFE_TAGS")) {
                        $res = strip_tags($res, "<p><a><i><em><b><strong><blockquote><br><img>");
                }