I want to convert given Unicode Chars into Emojis. From a function, I get a string and sometimes there are emojis in it but as Unicode (like this \ud83c\uddee\ud83c\uddf9). So I need to check first if this functions contains these Unicode emoji chars and then I need to convert them into emojis.
With this line of code, I tried to remove these Unicode chars, but it doesn't work. But now I need to find a method to convert these Unicode chars into Emojis and not removing them!
var fullnameWOE = fullname[1].replace(/([\uE000-\uF8FF]|\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDDFF])/g, '')
EDIT: still found no method to solve this problem... I have to add that I'm getting this string with name containing emoji from a php file, so if there are any opportunities to use php to solve it?