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.