Basically, html-encoded en-dash is unescaped when parsed, but is not escaped when unparsed, generating different result then expected. (Expectations were that output of unparse would be the same as original test_xml string)
P.S. Thank you for the lib, I found it very handy for my needs.
Code:
Output:
Basically, html-encoded en-dash is unescaped when parsed, but is not escaped when unparsed, generating different result then expected. (Expectations were that output of unparse would be the same as original test_xml string)
P.S. Thank you for the lib, I found it very handy for my needs.