Posted on 2005-06-27 12:26:51-07 by jerrycap in response to 657
Re: HTML::TreeBuilder
I noticed that the CPAN forum rendered/translated my HTML BR tags that were needed for the example. I am re-posting for clarification. Sorry about posting to the XML::TreeBuilder module, could not find one for HTML::TreeBuilder. HTML-BR-TAG-HERE is used to replace the true BR tag ======================================================================================= I am using an example from Sean Burke's "Perl & LWP" to use the TreeBuilder module to build a tree. I want to extract the text from embedded HMTL tables. The method as_text() is used to extract the text. I am stumbling upon embedded tags in the table text that are not being evaluated as I would expect. Example of text - 123 Main Street HTML-BT-TAG-HERE Anytown, CA HTML-BR-TAG-HERE 123456. This is displayed as 123 Main StreetAnytown, CA123456 when using the as_text() method. Is there some way of translating the html/text and having it display on separate lines as in: 123 Main Street Anytown, CA 123456
Direct Responses: 1717 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.