In both of your problems, the situation is most likely that the method you are using to pull the text out of the nodes (or put text into a node) doesn't do the escaping/unescaping/ignoring of entities that you are expecting, possibly because you aren't specifing the options that you want (probably because you don't kow about those options).
HTML::TreeBuilder is a subclass of HTML::Element ... take a look at the "as_HTML" method in HTML::Element, and the optional "$entities" parameter to see how to control what it escapes.
I'll leave it a an excercise for the reader(s) to find the corrisponding way of controlling how text you add to nodes gets escaped.
In reply to Re: processing text nodes using HTML::Element
by hossman
in thread processing text nodes using HTML::Element
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |