in reply to processing text nodes using HTML::Element
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: processing text nodes using HTML::Element
by Anonymous Monk on Mar 08, 2003 at 04:00 UTC | |
by hossman (Prior) on Mar 08, 2003 at 22:09 UTC |