In one of my applications I use the results from google ajax api
(which outputs JSON) and I'm getting an unescaped string like this:
"Sam\\u0026#39;s Home Page"
which is basically :
"Sam's Home Page"
what is happening here is like this (my guess from observation):
' (apostrophe) is escaped by HTML first so it becomes => '
unescape method) but I do need some implementation like this on the
I have googled a lot and found that there is no equivalent of
dependent on current character encoding of HTML page.
Further I have tried the CGI.unescapeHTML and CGI.unescape methods
also, that too din't helped.
any help ?