Title: How do I  Show Sample HTML Code In comments.php file
Last modified: August 18, 2016

---

# How do I Show Sample HTML Code In comments.php file

 *  [houdy](https://wordpress.org/support/users/houdy/)
 * (@houdy)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-show-sample-html-code-in-commentsphp-file/)
 * I am trying to show an example of how to format a link by editing the comments.
   php file like something shown below
 * What parameters or tags do I use to let the raw HTML show?
 *     ```
       <h3 id="respond">Leave a Reply</h3>
       Please format your HTML like this: <a href="WebsiteURL" target="_blank"> Title Of Website
       ```
   

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

 *  [markmichon](https://wordpress.org/support/users/markmichon/)
 * (@markmichon)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-show-sample-html-code-in-commentsphp-file/#post-581885)
 * best bet is to use this tag
    `<?php echo allowed_tags(); ?>`
 * Basically it will say all the stuff users can use in the comment field. So
 * `The following tags are allowed: <?php echo allowed_tags(); ?>`
 *  Thread Starter [houdy](https://wordpress.org/support/users/houdy/)
 * (@houdy)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-show-sample-html-code-in-commentsphp-file/#post-581948)
 * Thanks Mark,
 * But is there any why to show the exact code like this?
 * `<a href="WebsiteURL" target="_blank"> Title Of Website`
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 2 months ago](https://wordpress.org/support/topic/how-do-i-show-sample-html-code-in-commentsphp-file/#post-581955)
 * Instead of using < and > characters, use the text &lt; and &gt;. That will show
   up as those characters on the page.
 *  Thread Starter [houdy](https://wordpress.org/support/users/houdy/)
 * (@houdy)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/how-do-i-show-sample-html-code-in-commentsphp-file/#post-581967)
 * Thanks Otto, Worked like a charm!

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

The topic ‘How do I Show Sample HTML Code In comments.php file’ is closed to new
replies.

 * 4 replies
 * 3 participants
 * Last reply from: [houdy](https://wordpress.org/support/users/houdy/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/how-do-i-show-sample-html-code-in-commentsphp-file/#post-581967)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
