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


in reply to Re^8: 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'

"Was hoping for a module that let me knock this out in in like two lines."

Ignoring this many dependant modules and literally thousands of lines of code :P

my $html = 'url: <a href="http://example.com">http://example.com</a>'; my $dom = Mojo::DOM->new( $html ); say $dom->at('a')->remove;