summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-08-28 09:15:09 +0100
committerAndrew Dolgov <[email protected]>2008-08-28 09:15:09 +0100
commit4f3760433ff6952851436b79a21f71135fa21b9e (patch)
tree4b2f4435c294a9d3f66ab734a3af3970abc9a53f
parent4b9dfd5b91cd931febe0d5aec7107fc34f7c16ee (diff)
sanitize_rss: allow pre and code tags
-rw-r--r--functions.php2
-rw-r--r--tt-rss.css5
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;
+}