Open lseguin42 opened 7 years ago
Hey @lseguin42 how do you run the tests? npm test
just runs a single one.
I just ran node test/index.js
. Anyway, this PR is chaotic beacause there are loads of completely unrelated whitespace changes. IMHO, this should be closed in favour of PR #207, which only escapes >
if it was preceded by ]]
(in accordance with Section 2.4. of the XML 1.0 spec).
Not encoding >
to >
casues a lot of troubles if the try to format (pretty print) serialised XML text. It would be very helpful to have this pull request merged IMHO
On browser :
new DOMParser().parseFormString('<div>]]></div>', 'text/xml');
this code throw an error.we need to encode '>' for fix it.