]> git.wh0rd.org Git - tt-rss.git/commitdiff
mobile: call sanitize_rss() on article content
authorAndrew Dolgov <fox@bah.org.ru>
Fri, 18 Dec 2009 08:39:43 +0000 (11:39 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Fri, 18 Dec 2009 08:39:43 +0000 (11:39 +0300)
mobile/functions.php

index 5f6256dc354aef643e9619b1a9b03887a5c977a9..0d235c7db6f8ff1383efce71ae94cfdf0e818220 100644 (file)
                        print "</div>";
        
                        print "</fieldset>";
-       
-                       print "<p>";
-                       print $line["content"];
-                       print "</p>";
+
+                       $content = sanitize_rss($link, $line["content"]);
+                       $content = preg_replace("/href=/i", "target=\"_blank\" href=", $content);
+
+                       print "<div>$content</div>";
 
                        print "<fieldset>";