• Resolved SOTDaily

    (@sotdaily)


    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://ww.wp.xz.cn/plugins/wise-chat/

Viewing 1 replies (of 1 total)
  • Plugin Author Marcin

    (@marcinlawrowski)

    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.