I'm having a problem when the string I need to output contains " (quote marks). For example a string of XML like:
<?xml version="1.0" encoding="utf-8"?>
when I try to execute this line of javascript:
var resp = Ext.decode(response.responseText);
I get the error
Uncaught Ext.JSON.decode(): You're trying to decode an invalid JSON String: {"SUCCESS":"1","XMLDATA":"<?xml version=\"1.0\" encoding=\"utf-8\"?>"}
note: I need the xml in a return variable. I do not wish to parse the xml and read it that way..
<?xml version="1.0" encoding="utf-8"?>
when I try to execute this line of javascript:
var resp = Ext.decode(response.responseText);
I get the error
Uncaught Ext.JSON.decode(): You're trying to decode an invalid JSON String: {"SUCCESS":"1","XMLDATA":"<?xml version=\"1.0\" encoding=\"utf-8\"?>"}
note: I need the xml in a return variable. I do not wish to parse the xml and read it that way..
Comment