in reply to XML::Twig parse html trouble
I tried your code using XML::Twig v3.39, perl v5.14.2 and it looks like it's working properly. For the data section, I used:
<html><body> <div>M&M</div> <div>M&M</div> <div>M&amp;M</div> </body></html>
and the output is:
<html> <head></head> <body> <div>M&M</div> <div>M&M</div> <div>M&amp;M</div> </body> </html>
Update: In light of the previous reply, I'm using HTML::TreeBuilder v4.2
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML::Twig parse html trouble
by remiah (Hermit) on Feb 20, 2014 at 20:36 UTC |