Your first call to get_text (when you check if it has a value) is eating the text, then the next call doesn't get the value. You probably want something more along the lines of:
my $text = $htm5->get_text; if ($text) { $headtags .= " $text"; }
In reply to Re^3: is_start_tag not on tokeparser simple
by revdiablo
in thread is_start_tag not on tokeparser simple
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |