diff options
author | Andrew Dolgov <[email protected]> | 2008-08-28 09:15:09 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-08-28 09:15:09 +0100 |
commit | 4f3760433ff6952851436b79a21f71135fa21b9e (patch) | |
tree | 4b2f4435c294a9d3f66ab734a3af3970abc9a53f | |
parent | 4b9dfd5b91cd931febe0d5aec7107fc34f7c16ee (diff) |
sanitize_rss: allow pre and code tags
-rw-r--r-- | functions.php | 2 | ||||
-rw-r--r-- | tt-rss.css | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 7894e401a..e09ff932e 100644 --- a/functions.php +++ b/functions.php @@ -3516,7 +3516,7 @@ 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>"); diff --git a/tt-rss.css b/tt-rss.css index 5048d818b..3e97c6f31 100644 --- a/tt-rss.css +++ b/tt-rss.css @@ -2119,3 +2119,8 @@ textarea.labelSQL { div#label_test_result { clear : both; } + +pre, code { + font-size : 12px; + font-family : monospace; +} |