How to: Display allowed tags in comments

February 10, 2009 at 10:29 am

Do you know that your readers can use some HTML tags in the comments form? In order to make things easier for them, you should notify your readership about what HTML tags they can use in the comment form. Here’s an easy way to do it.

To achieve this recipe, edit your comments.php file and paste the following code just above the comment form:

Allowed tags: <?php echo allowed_tags(); ?>

yes, this is as simple as that!