sanitize_rss: allow pre and code tags
This commit is contained in:
parent
4b9dfd5b91
commit
4f3760433f
2 changed files with 6 additions and 1 deletions
|
@ -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>");
|
||||
|
|
|
@ -2119,3 +2119,8 @@ textarea.labelSQL {
|
|||
div#label_test_result {
|
||||
clear : both;
|
||||
}
|
||||
|
||||
pre, code {
|
||||
font-size : 12px;
|
||||
font-family : monospace;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue