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 reply to Re^11: Looking for a module that strips an HTML tag and its associated 'TEXT'
by marto
in thread Looking for a module that strips an HTML tag and its associated 'TEXT'
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |