I’m working on my first WordPress site (using 2.0 RC1).
I don’t want commenters to be able to use <b> and <i>, rather strong and em. I opened up wp-includes/kses.php and modified the $allowedtags array to take out those two entries. My comment page is no longer showing them as allowed tags, but if I put them in it is allowing them to be added.
Furthermore, I just tried the <sub> and <sup> tags and they were allowed through.
I just want to allow a few tags. WordPress does a good job of creating paragraphs on its own, and beyond that I just want people to be able to do a few things.
Is there a way to get wordpress to only allow a few tags through on comments? If not, should I be looking at another syntax or plugin? I know there is stuff like Markdown and Smarty Pants, but I am totally new to this part.
- The topic ‘How to modify allowed_tags() defaults? / Help with comment formatting…’ is closed to new replies.