darthwes
17 Jan 2011, 10:22 AM
So I've got a backend piece that wants to send back a list of errors when there is one/many.
Right now, I'm debugging this xhr being returned:
{"success":true,"results":"12-2011-fail-Upload Failed:<br\/>Error 14."}
First of all, I don't know why my "<br/>" was turned into "<br\/>" Any light on that?
Secondly, it's still valid (JSLINT confirms) json, but Ext won't parse it because (and this is my real problem) Ext thinks the "br\/>" is "br/="">" which is totally jacked up and I have no way of understanding why. So eval throws up and js loses his internal organs.
Anyone have any light they can shed on this for me? Why is my string getting converted 2 different ways? Who is converting it into an invalid string?
Thanks for your time.
Right now, I'm debugging this xhr being returned:
{"success":true,"results":"12-2011-fail-Upload Failed:<br\/>Error 14."}
First of all, I don't know why my "<br/>" was turned into "<br\/>" Any light on that?
Secondly, it's still valid (JSLINT confirms) json, but Ext won't parse it because (and this is my real problem) Ext thinks the "br\/>" is "br/="">" which is totally jacked up and I have no way of understanding why. So eval throws up and js loses his internal organs.
Anyone have any light they can shed on this for me? Why is my string getting converted 2 different ways? Who is converting it into an invalid string?
Thanks for your time.