Replacements like & were already handled by libXML but we have no tests to confirm that, this adds some.