WordPress.org

Ready to get started?Download WordPress

Forums

Customise HTML allowed in comments? (2 posts)

  1. dzr
    Member
    Posted 9 years ago #

    In WP 1.2.2 is it possible to customise what HTML you allow in comments? In particular, I just posted something on my blog with several code examples, and would like people commenting to be able to use pre without having that element replaced with a p and line breaks replaced with br and two line breaks replaced with p. I can hack the php myself if someone can give me a clue where to look---I've only been using WP for a short time and I'm still not familiar with the code base.

    Best, Darren

  2. Kafkaesqui

    Posted 9 years ago #

    If you haven't found it yet, the file you're looking for is wp-includes/kses.php. Check out the $allowedtags array.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.