Title: Emoticon/html code bug
Last modified: September 1, 2016

---

# Emoticon/html code bug

 *  Resolved [SOTDaily](https://wordpress.org/support/users/sotdaily/)
 * (@sotdaily)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/emoticonhtml-code-bug/)
 * Good afternoon,
 * Great plug-in, thank you for this!
 * I noticed that using html entities can trigger accidental emoticons. Example:
   S&P 500 typed in the chat window will show S&[crazy.png] 500 after hitting return.
   I believe this is because of the entity code & followed by the P is rendered 
   as &P and the system sees ;P as an emoticon code.
 * Not sure how to fix this from a coding standpoint, maybe an entity filter of 
   some kind before processing the smilies. A laborious way would be to create a
   an array of the entities and a special code for each, str_replace on that, process
   for emoticons, and then re-str_replace the entities back in. There’s probably
   a better way of doing it though, I trust you. 🙂
 * Cheers.
 * [https://wordpress.org/plugins/wise-chat/](https://wordpress.org/plugins/wise-chat/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Marcin](https://wordpress.org/support/users/marcinlawrowski/)
 * (@marcinlawrowski)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/emoticonhtml-code-bug/#post-7589311)
 * Hello,
 * Thank you for your feedback! I will take a look and find a solution for this.
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Emoticon/html code bug’ is closed to new replies.

 * ![](https://ps.w.org/wise-chat/assets/icon-128x128.png?rev=1306481)
 * [Wise Chat](https://wordpress.org/plugins/wise-chat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wise-chat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wise-chat/)
 * [Active Topics](https://wordpress.org/support/plugin/wise-chat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wise-chat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wise-chat/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marcin](https://wordpress.org/support/users/marcinlawrowski/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/emoticonhtml-code-bug/#post-7589311)
 * Status: resolved