Customise HTML allowed in comments? (2 posts)

  1. dzr
    Posted 11 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 11 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


No tags yet.