I have a somewhat simple JavaScript chat box, and it works great. I would really like to have it work like the Twitch chat box where when a user types a certain string, the text is 'converted' to an emoticon.
Example: I type ":)" and the text turns into a smiley face!
So far I have not found any questions/answers which demonstrate how to do this.
I already know to use a switch statement, so is there a simple way to convert the user input to a picture in JavaScript, or is it much more complicated?