HTML::Obliterate - Perl extension to remove HTML from a string or arrayref of strings.
use HTML::Obliterate qw(extirpate_html); my $html_less_version_of_string = extirpate_html( $html_code_string );
Removes HTML tags and entities from a string, efficiently and reliably.
None by default. But all functions can be.
Takes a string, removes all HTML tags and entities, and returns the HTMl-free version.
Same as remove_html_from_string() except you can also pass it an array ref of strings to have their HTML removed.
In void context it will modify the array passed:
my @html = ... remove_html(\@html); # every item in @html now does not have any HTML tags in it
Otherwise it returns an array ref to a new array:
my @html = ... my $html_free = remove_html(\@html); # @html is still the same strings, including any HTML tags # $html_free is an array ref of an array that is a copy of @html except without any HTML tags
Tired of the same old thing? Surprise your wife, impress your boss, and amaze your friends with these wild, wacky, alternative aliases to remove_html():
My favorite just FYI ;)
My second favorite...
A new favorite
Daniel Muey, http://drmuey.com/cpan_contact.pl
Copyright (C) 2006 by Daniel Muey
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.