Emoticon/html 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.
The topic ‘Emoticon/html code bug’ is closed to new replies.