How would I take a text string with emojis and wrap each emoji in an HTML tag?
Example string...
str = "This is a test with emojis in the string"
Desired output...
output = "This is <i></i> a test with <i></i> emojis in the <i></i> string"
How would I take a text string with emojis and wrap each emoji in an HTML tag?
Example string...
str = "This is a test with emojis in the string"
Desired output...
output = "This is <i></i> a test with <i></i> emojis in the <i></i> string"
This regex will match emojis:
[\{uD83C}-\x{DBFF}\x{DC00}-\x{DFFF}]+
Replace with:
<i>$0</i>