I am trying parse the unicode data from http response for emoji etc and response is coming as a property - value pair of an object in the form of message content JSON data ("messageContent":"hello \\ud83d\\ude31"
). but as an object form it is displaying:
data:{...
messageContent:"hello \ud83d\ude31"
}
then after assigning messageContent data to template it is displaying same unicode (hello \ud83d\ude31
), it did not change to any corresponding emoji or character
but if I am just using chrome's dev tool console like:
var msg = "hello \ud83d\ude31";
then msg value will be "hello <some emoji or character>"
and even if using "textContent" using javascript for that element, it is working fine but in case of angular2 assigning data to template it is not working, please suggest something.