Click here to Skip to main content
15,563,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have saved bunch of emojis as images locally, i want replace a specific text on the message as this emoji image.

What I have tried:

var replaced = text.replaceAll(regExp, '*');

Instead of the asterisk mark can we replace this with actual image. this only allows text to be replaced with.
Posted
Updated 18-Jun-21 1:39am

1 solution

Yes, but only if the emoji is represented by a UTF sequence.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900