xmldom
xmldom copied to clipboard
Fix newline character encoding
This library suffers from the problem described here: https://stackoverflow.com/a/2012277
Newlines are not encoded properly.
PR fix this by encoding \n
as
(LF) and properly decoding
as \n
.
Can you please add a unit test for this usecase ?
Could you add instructions on how to run the tests and put the required test-related dependencies in devDependencies ?