Title: HTML appears in comment insertion form
Last modified: August 18, 2016

---

# HTML appears in comment insertion form

 *  [poppy](https://wordpress.org/support/users/poppy/)
 * (@poppy)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/html-appears-in-comment-insertion-form/)
 * Just above where a user would insert a new comment the following HTML code breaks
   through onto the web page
 * Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed:`
   <a href="" title="" rel=""> <b><br />
    <blockquote cite=""> <em> <i> <strike>
   <strong>
 * It seems to come from wp-comments.php
 * `<?php _e("Line and paragraph breaks automatic, e-mail address never displayed,
   HTML allowed:"); ?>
    <code><?php echo allowed_tags(); ?>
 * My php is not yet good enough to see what is wrong. What *should* be there?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Minna](https://wordpress.org/support/users/minna/)
 * (@minna)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/html-appears-in-comment-insertion-form/#post-143617)
 * That should be there. It tells the commenters what tags they can use in their
   comments as they aren’t allowed to use everything (such as embedding evil codes
   or suspicious images)
 *  Thread Starter [poppy](https://wordpress.org/support/users/poppy/)
 * (@poppy)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/html-appears-in-comment-insertion-form/#post-143620)
 * How do I change wp-comments.php to correct it? I don’t know where to find allow_tags().
 *  Thread Starter [poppy](https://wordpress.org/support/users/poppy/)
 * (@poppy)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/html-appears-in-comment-insertion-form/#post-143622)
 * Just realised you mean it really should look like that. Mmm. Think I’ll make 
   that nicer…
 *  [Minna](https://wordpress.org/support/users/minna/)
 * (@minna)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/html-appears-in-comment-insertion-form/#post-143624)
 * What needs correcting?
 * If you want to remove/add allowed tags you need to edit a file called kses.php.
   By doing a search here on ‘allowed tags’ will show threads on the syntax in that
   file (for example [how to allow images](http://wordpress.org/support/10/4127)).
   Or you can just inspect the structure of the file and add tags in a similar way.
 *  Thread Starter [poppy](https://wordpress.org/support/users/poppy/)
 * (@poppy)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/html-appears-in-comment-insertion-form/#post-143631)
 * I didn’t think you meant that
    `<a href="" title="" rel=""> <abbr title=""> <
   acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>`
   should actually appear on the page.
 *  [Minna](https://wordpress.org/support/users/minna/)
 * (@minna)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/html-appears-in-comment-insertion-form/#post-143633)
 * I sure did 🙂 As I said, that lets your visitors know what sort of tags they 
   are allowed to use
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/html-appears-in-comment-insertion-form/#post-143634)
 * Depending on my audience, I’d rather not display those lines. It looks cryptic
   to most people. I’d rather replace them with some quicktag buttons. Most people
   are more familiar with **B**, **I**, etc buttons found in word processor; so,
   those will make more sense to them
 *  [Minna](https://wordpress.org/support/users/minna/)
 * (@minna)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/html-appears-in-comment-insertion-form/#post-143636)
 * There’s a plugin for that (making buttons instead of tags…) but I think it simply
   makes a similar row of buttons as on the post editing page so I don’t know if
   it’s any less cryptic. Now where did I see it… Ah, [here it is](http://www.asymptomatic.net/wp-hacks),
   called Comment Quick Tags.
 *  Thread Starter [poppy](https://wordpress.org/support/users/poppy/)
 * (@poppy)
 * [21 years, 3 months ago](https://wordpress.org/support/topic/html-appears-in-comment-insertion-form/#post-143733)
 * Great – I’ll have a look at that!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘HTML appears in comment insertion form’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [poppy](https://wordpress.org/support/users/poppy/)
 * Last activity: [21 years, 3 months ago](https://wordpress.org/support/topic/html-appears-in-comment-insertion-form/#post-143733)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
