This is the string in question:
var string = "{\"CMD\":\"<a href=\"someurl.com\">link</a>\"}";
When I un-escape the quotes (except the url) and validate, it appears to be valid:
{
"CMD": "<a href=\"someurl.com\">link</a>"
}
But it breaks my Javascript program.
edit: Have also tried double escaping. The first double quote seems to get escaped, but not the second:
{
"CMD": "<a href=\\"someurl.com\\">link</a>"
}
Offending code:
webSocket.send("{\"CMD\":\"<a href=\\\"link.com\\\">link</a>\"}");
var string = "{\"CMD\":\"<a href=\\\"someurl.com\\\">link</a>\"}";JSON.stringifyandJSON.parse.