How to decode unicode(uD83DuDE0A) string to emojis in AngularJS? [closed]
I have to convert unicode(uD83DuDE0A) to emojis and i have tried each and every solution but nothing worked for me.
Tried Below solution
- decodeURI
- decodeURIComponent
- escape
I have tried above all solution not worked for me.
//encodeData for convert unicode to emoji
$scope.encodeData = function(msg){
return decodeURI(msg);
}
<div class="chat-text">
<span>{{encodeData(message.msg)}}</span>
</div>
But if a check in editor its working check below image:
What’s wrong I am here?
Source: New feed
Source Url How to decode unicode(uD83DuDE0A) string to emojis in AngularJS? [closed]