Title: Escape HTML
Last modified: August 30, 2016

---

# Escape HTML

 *  Resolved [esemlabel](https://wordpress.org/support/users/esemlabel/)
 * (@esemlabel)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/escape-html/)
 * There is a bug when special characters present in post title. Those special characters
   breaks html code.
    You should escape html Screenshot title: [http://oi66.tinypic.com/2hs7nsz.jpg](http://oi66.tinypic.com/2hs7nsz.jpg)
   Shcreenshot breaked code: [http://oi63.tinypic.com/x1yr20.jpg](http://oi63.tinypic.com/x1yr20.jpg)
 * [https://wordpress.org/plugins/seo-optimized-images/](https://wordpress.org/plugins/seo-optimized-images/)

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

 *  Thread Starter [esemlabel](https://wordpress.org/support/users/esemlabel/)
 * (@esemlabel)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/escape-html/#post-6875275)
 * or “esc_attr” as it’s an attribute tag
 *  Plugin Author [webriti](https://wordpress.org/support/users/priyanshumittal/)
 * (@priyanshumittal)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/escape-html/#post-6875281)
 * Hi
 * Thanks for mentioning this , will fix this in next update.
 * Thanks
    Priyanshu
 *  Thread Starter [esemlabel](https://wordpress.org/support/users/esemlabel/)
 * (@esemlabel)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/escape-html/#post-6875317)
 * line 29
    `$post_title = $post->post_title;` replace with `$post_title = esc_attr(
   $post->post_title);`
 * and update is done)
 *  Plugin Author [webriti](https://wordpress.org/support/users/priyanshumittal/)
 * (@priyanshumittal)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/escape-html/#post-6875493)
 * Yes you are right the spacial characters breaking the html. Thanks for mentioning
   this corrected the package and updated.
 *  Plugin Author [webriti](https://wordpress.org/support/users/priyanshumittal/)
 * (@priyanshumittal)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/escape-html/#post-6875494)
 * Yes you are right the spacial characters breaking the html. Thanks [@esemlabel](https://wordpress.org/support/users/esemlabel/)
   for mentioning this corrected the package and updated.
 * Thanks
    Priyanshu

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

The topic ‘Escape HTML’ is closed to new replies.

 * ![](https://ps.w.org/seo-optimized-images/assets/icon-128x128.png?rev=1456929)
 * [Seo Optimized Images](https://wordpress.org/plugins/seo-optimized-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-optimized-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-optimized-images/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-optimized-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-optimized-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-optimized-images/reviews/)

## Tags

 * [special-characters](https://wordpress.org/support/topic-tag/special-characters/)

 * 5 replies
 * 2 participants
 * Last reply from: [webriti](https://wordpress.org/support/users/priyanshumittal/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/escape-html/#post-6875494)
 * Status: resolved