http://qs321.pair.com?node_id=11120002


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;
  • Comment on Re^11: Looking for a module that strips an HTML tag and its associated 'TEXT'
  • Download Code