in reply to Re: HTML parsing OR capturing text from a string within tags
in thread HTML parsing OR capturing text from a string within tags
I like how all of this is suppose to work! I think I read in one of the docs that there is a list of tags in the PM. Maybe I can add this tag to the list of html tags in the PM ? I was hoping that it would think that anything between < > are tags but I guess it does not do that. Thanks, Kevinmy $tag = 'div class=\\042mytitle maximumtitle\\042 id=\\042idtitle04 +2'; my $match = $tree->find($tag); if ($match) { # Found it! print "Found tag '$tag' ...\n"; print " As text: ", $match->as_text, "\n"; print " As text: ", $match->as_HTML, "\n"; } else { print "Unable to find tag '$tag'\n"; }
|
|---|