I have a data with unicode from server side, just like below.
data = "text\\u0041text"
I need to display this data by inserting html, use the code below.
document.body.innerHTML = "<div>" + data + "</div>";
And the result I expected is showing unicode charactor on the page, but what I get is a unicode string (\\u0041).
the way I tried is using str.replace, but I can't replace the escape character(\\).
So my question is How can I convert unicode in a string to unicode string.
Someone can help please?