Inner Text and parse XML?

83 Views Asked by At

Lets assume I got some xml code pasted into a contenteditable div. I am now retrieving the text (xml) from the div via jQuery's .text() function and then input it into jquery's parseXML() function. It works everywhere except Firefox which always says not well formed xml? Pasting the exact same xml code via i.e. a js prompt() with the same code works just perfectly fine. Is this a bug and if so, what could I do about that?

0

There are 0 best solutions below