Search code examples
javascripthtmlemoticons

Chrome and Apple iphone emoticons in javascript/html


I am displaying strings in javascript/html that have Apple iphone emoticons. Safari handles them. Chrome doesn't. What should I do?


Solution

  • Unfortunately, this is a known bug with Chrome, as it does not natively support emoticons for some versions (though the most listed is OSX Lion, I'm pretty sure it doesn't support Emoji on most versions). Users can use a plugin to display them, but you're sort of helpless on your end. You can parse and remove them, or swap them out for a set of emoticons that you include as a font with your webpage, similar to how forums do it.