0

I have a text area and the user can typing any text with emojis, I would like to replace the emojis typed with the emoji holded by a div.

For example, if user type:

"I love you ❤️☺️ so much"

Inside the div need to be:

<div>I love you <span class"emoji">❤️</span><span class"emoji"></span><span class"emoji">☺️</span> so much</div>
  • 1
    Start by checking if the text has an emoji, see https://stackoverflow.com/questions/18862256/how-to-detect-emoji-using-javascript – Adil Bimzagh Aug 27 '21 at 09:29

0 Answers0