Support » Requests and Feedback » Request: kses.php modifications for allowed tags

  • I’d like to request two modifications to kses.php:

    1. Alphabetically arranged tags
    2. 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 unnecessary br tags.
    Only the $allowedtags assignment needs to be modified. Here’s what mine looks like now:
    $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());

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Request: kses.php modifications for allowed tags’ is closed to new replies.