in reply to XML::Twig and HTML Entities

This is valid XML (which is generated when you don't have the output_text_filter=>'html' option set:
<log>&lt;pre>won't escape properly - uggh!&lt;/pre></log>
The XML spec says that > characters don't need to be escaped. Consequently, when you use the output_text_filter=>'html' it takes the valid XML and encodes &lt; into &amp;lt; and also encodes > into &gt;.