WordPress.org

Ready to get started?Download WordPress

Forums

Request: kses.php modifications for allowed tags (2 posts)

  1. lars
    Member
    Posted 10 years ago #

    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:
    <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>

  2. Dougal Campbell
    Member
    Posted 10 years ago #

    Yes the p tag definitely should have been in there. I've added a couple others, as well.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.