http://qs321.pair.com?node_id=940479


in reply to LibXML doesn't encode single or double quotes

Why do you think single and double quotes need to be escaped?

It is necessary to escape a quote character when it is included in an attribute value delimited by the same type of quote. e.g.:

<person name="Michael &quot;Mickey&quot; Mouse"></person>

XML::LibXML will escape the quotes in this case.

But apart from that case, it's perfectly safe to use unescaped quotes in the text body of XML/HTML elements.