When I try to stringyfy
ABC
<a href="abc.co.dds">
dfsdsf
</a>
JSON gives me
"ABC\n<a href=\"abc.co.dds\">\n dfsdsf\n</a>"
but when I try
s=('"ABC\n<a href=\"abc.co.dds\">\n dfsdsf\n</a>"');
JSON.parse(s)
I get a SyntaxError: Unexpected token on my console
How can I parse a manually entered string with JSON?
json).