in reply to Re^10: Looking for a module that strips an HTML tag and its associated 'TEXT'
in thread Looking for a module that strips an HTML tag and its associated 'TEXT'
If you want to reduce the number of lines a little:
my $dom = Mojo::DOM->new( $html ); $dom->find( $tag )->each( sub { $_-> remove } ); return $dom;
|
---|
In Section
Seekers of Perl Wisdom