Request: kses.php modifications for allowed tags
-
I’d like to request two modifications to
kses.php
:- Alphabetically arranged tags
- Addition of paragraph tag
The first makes it easier to visually scan the allowed tags in the comments.
The second allows for greater formatting control for the commenter, informs “advanced” commenters that they can use the paragraph tag, thus reducing the need for the administrator to manually edit comment markup, and rids the markup of unnecessarybr
tags.
Only the$allowedtags
assignment needs to be modified. Here’s what mine looks like now:
<pre>
$allowedtags = array(‘p’ => array(),
‘a’ => array(‘href’ => array(), ‘title’ => array(), ‘rel’ => array()),
‘abbr’ => array(‘title’ => array()),
‘acronym’ => array(‘title’ => array()),
‘b’ => array(),
‘br’ => array(),
‘blockquote’ => array(‘cite’ => array()),
‘code’ => array(),
‘del’ => array(‘datetime’ => array()),
’em’ => array(),
‘i’ => array(),
‘strike’ => array(),
‘strong’ => array());
</pre>
- The topic ‘Request: kses.php modifications for allowed tags’ is closed to new replies.