Title: Broken HTML code when using special Unicode characters in title
Last modified: August 30, 2016

---

# Broken HTML code when using special Unicode characters in title

 *  Resolved [ctron](https://wordpress.org/support/users/ctron/)
 * (@ctron)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/broken-html-code-when-using-special-unicode-characters-in-title/)
 * When using a special Unicode character in the title (like 🎄 – 🎄) the twitter
   button which is generated below a post is creating broken HTML:
 * `<!-- Twitter Button --><div class="twitter-button" id="twitter-content-buttons-
   post-302"><a href="http://twitter.com/share" class="twitter-share-button" data-
   lang="en" data-url="http://packagedrone.org/2015/12/23/merry-christmas-2015/"
   data-counturl="http://packagedrone.org/2015/12/23/merry-christmas-2015/" data-
   text=" </div>`
 * See the “data-text” attribute which suddenly ends.
 * [https://wordpress.org/plugins/nextgen-facebook/](https://wordpress.org/plugins/nextgen-facebook/)

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

 *  Plugin Author [JS Morisset](https://wordpress.org/support/users/jsmoriss/)
 * (@jsmoriss)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/broken-html-code-when-using-special-unicode-characters-in-title/#post-6879187)
 * Got it — I’ve added a call to `wp_encode_emoji()` for all text strings in the
   next version. Thanks for letting me know. 😉 Version 8.20.0 should be available
   in the next few days — this week-end at the latest.
 * js.
 *  Plugin Author [JS Morisset](https://wordpress.org/support/users/jsmoriss/)
 * (@jsmoriss)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/broken-html-code-when-using-special-unicode-characters-in-title/#post-6879208)
 * If you want to give the pre-release a spin, you can get v8.20.0 here:
 * [https://downloads.wordpress.org/plugin/nextgen-facebook.zip](https://downloads.wordpress.org/plugin/nextgen-facebook.zip)
 * js.

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

The topic ‘Broken HTML code when using special Unicode characters in title’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextgen-facebook_f2c17e.svg)
 * [NextGEN Facebook](https://wordpress.org/plugins/nextgen-facebook/)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-facebook/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-facebook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-facebook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-facebook/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [JS Morisset](https://wordpress.org/support/users/jsmoriss/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/broken-html-code-when-using-special-unicode-characters-in-title/#post-6879208)
 * Status: resolved