Added a few tags. Pretty formatting.

git-svn-id: http://svn.automattic.com/wordpress/trunk@766 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
emc3 2004-01-12 18:15:09 +00:00
parent 3f58a8429a
commit 6f5b19cc85
1 changed files with 29 additions and 12 deletions

View File

@ -10,20 +10,37 @@
#
# [kses strips evil scripts!]
$allowedtags = array('b' => array(),
'i' => array(),
'strong' => array(),
'code' => array(),
'acronym' => array('title' => array()),
'abbr' => array('title' => array()),
'em' => array(),
'strike' => array(),
'a' => array('href' => array(),
'title' => array(),
'rel' => array()),
$allowedtags = array(
'a' => array(
'href' => array(),
'title' => array(),
'rel' => array()),
'abbr' => array(),
'acronym' => array(),
'abbr' => array('title' => array()),
'acronym' => array('title' => array()),
'b' => array(),
'blockquote' => array('cite' => array()),
'br' => array(),
'code' => array(),
'del' => array('datetime' => array()),
'br' => array());
'dd' => array(),
'dl' => array(),
'dt' => array(),
'em' => array(),
'i' => array(),
'ins' => array('datetime' => array(), 'cite' => array()),
'li' => array(),
'ol' => array(),
'p' => array(),
'q' => array(),
'strike' => array(),
'strong' => array(),
'sub' => array(),
'sup' => array(),
'u' => array(),
'ul' => array(),
);
function wp_kses($string, $allowed_html, $allowed_protocols =
array('http', 'https', 'ftp', 'news', 'nntp', 'telnet',