0

Here is a simple example to illustrate the problem. Say I have an html page like below.

<html>

<head> <title> First page</title> </head>

<body> Hello : &#x78BA;&#x8A8D;</body>

</html>

When I open this page in browser I get below test:

Hello : 確認

I want to use java script to convert &#x78BA;&#x8A8D; to above symbols and assign it to a string variable. How It can be done. I looked through several posts on this site but can not find a solution. Please help.

bloodyKnuckles
  • 11,551
  • 3
  • 29
  • 37
hamid
  • 17
  • 4
  • Do you want to translate the characters from Japanese to English? – aplua Jun 14 '22 at 17:26
  • I want to covert 確認 to Japanese symbol as shown above and assign it to a variable in Javascript. – hamid Jun 14 '22 at 17:34
  • Does this answer your question? [how to decode hex code of html entities to text in javascript?](https://stackoverflow.com/questions/25607969/how-to-decode-hex-code-of-html-entities-to-text-in-javascript) – bloodyKnuckles Jun 14 '22 at 17:47

0 Answers0