]> git.wh0rd.org Git - tt-rss.git/commitdiff
sanitize_rss: allow pre and code tags
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 28 Aug 2008 08:15:09 +0000 (09:15 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 28 Aug 2008 08:15:09 +0000 (09:15 +0100)
functions.php
tt-rss.css

index 7894e401ae9b744e46170a426b1517a8bed4d8eb..e09ff932e4be40fe2e562657552da20ff7ca1eec 100644 (file)
                if (get_pref($link, "STRIP_UNSAFE_TAGS") || $force_strip_tags) {
 
                        $res = strip_tags_long($res, 
-                               "<p><a><i><em><b><strong><blockquote><br><img><ul><ol><li>");
+                               "<p><a><i><em><b><strong><code><pre><blockquote><br><img><ul><ol><li>");
 
 //                     $res = preg_replace("/\r\n|\n|\r/", "", $res);
 //                     $res = strip_tags_long($res, "<p><a><i><em><b><strong><blockquote><br><img><div><span>");                       
index 5048d818b3b54ffc7b47e82f93331b81abb77ef5..3e97c6f315d0dfabdbdc8976e0d08fa08c6c37f5 100644 (file)
@@ -2119,3 +2119,8 @@ textarea.labelSQL {
 div#label_test_result {
        clear : both;
 }
+
+pre, code {
+       font-size : 12px;
+       font-family : monospace;
+}