Title: Post titles cannot render HTML
Last modified: January 14, 2017

---

# Post titles cannot render HTML

 *  Resolved [cag8f](https://wordpress.org/support/users/cag8f/)
 * (@cag8f)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/post-titles-cannot-render-html/)
 * Hello. Thanks very much for the plugin. It is quite handy and easy to use. I 
   have one question, about the post titles displayed by the plugin. One of my post
   titles has some HTML in it, to render a portion of the text as italic. WordPress
   has no problem applying this HTML to the title on my blog page ([see here](http://imgur.com/a/qWk1K)).
   But when I display the same post using your plugin, the HTML is not recognized(
   [see here](http://imgur.com/a/t2dEp)). Are there any fixes or workarounds you
   might know of? I’d really like to use your plugin and keep this text as italic
   if possible.
 * Thanks again.

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

 *  Plugin Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/post-titles-cannot-render-html/#post-8654206)
 * The title text is sanitized before printing out. The sanitation includes escaping
   the HTML tags to print them out “as is”. That behaviour is highly recommended
   in the WordPress documentation for plugin developers for security reasons.
 * So I did the best. And in your case it seems to be overkill…
 * I just dove into the WordPress code and found out that even there the post title
   is not sanitized the way as I implemented. So I will remove the sanitation to
   let your HTML elements work.
 *  Thread Starter [cag8f](https://wordpress.org/support/users/cag8f/)
 * (@cag8f)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/post-titles-cannot-render-html/#post-8660878)
 * >> So I will remove the sanitation to let your HTML elements work.
 * Wow thanks very much for that. Will that be in an upcoming update to the plugin
   that I’ll need to install? I currently have version 3.0.2.
 * >> That behaviour is highly recommended in the WordPress documentation for plugin
   developers for security reasons.
 * It is quite odd that WordPress recommends such sanitation, but does not follow
   the same protocol. Normally they are pretty consistent about that kind of stuff.
 *  Plugin Contributor [Martin Stehle](https://wordpress.org/support/users/hinjiriyo/)
 * (@hinjiriyo)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/post-titles-cannot-render-html/#post-8661832)
 * With the new version 3.0.3 post title HTML is left untouched and will take effect.
 * If you like this plugin I would be glad about your review.
 *  Thread Starter [cag8f](https://wordpress.org/support/users/cag8f/)
 * (@cag8f)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/post-titles-cannot-render-html/#post-8662489)
 * OK now I see the update option in my back-end. When I logged in yesterday, WordPress
   did not notify me that an update was available. Odd.
 * Anyway, I updated the theme and the HTML markup is now applied to the titles 
   as expected. Thanks very much for that. I will leave a review now.

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

The topic ‘Post titles cannot render HTML’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-post-list/assets/icon-256x256.png?rev=2478520)
 * [Ultimate Post List](https://wordpress.org/plugins/ultimate-post-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-post-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-post-list/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-post-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-post-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-post-list/reviews/)

## Tags

 * [escaping](https://wordpress.org/support/topic-tag/escaping/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [post-titles](https://wordpress.org/support/topic-tag/post-titles/)

 * 4 replies
 * 2 participants
 * Last reply from: [cag8f](https://wordpress.org/support/users/cag8f/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/post-titles-cannot-render-html/#post-8662489)
 * Status: resolved