Similar Question:
How do I decode a string with escaped unicode?
I have a JavaScript variable that contains a Unicode character.
var value = "\\u53d3\\u5f13\\";
When I add the above value dynamically to a div, the proper Unicode value is not displayed due to the additional backslashes (\\u). However, if I change it to a single backslash (\u), the Unicode symbol appears correctly.
In my current environment, I am unable to store the value with a single backslash as the response comes from the server side.
Is there a way to replace the double backslash with a single backslash and display the correct Unicode?
Thank you in advance.