NAME

HTML::Obliterate - Perl extension to remove HTML from a string or arrayref of strings.

SYNOPSIS

use HTML::Obliterate qw(extirpate_html);
my $html_less_version_of_string = extirpate_html( $html_code_string );

DESCRIPTION

Removes HTML tags and entities from a string, efficiently and reliably.

EXPORT

None by default. But all functions can be.

FUNCTIONS

remove_html_from_string()

Takes a string, removes all HTML tags and entities, and returns the HTMl-free version.

remove_html()

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

not the same boring code

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():

obliterate_html
kill_html
erase_html
extinguish_html
extirpate_html

My favorite just FYI ;)

abolish_html
doff_html

My second favorite...

eliminate_html
drop_html
purge_html
strip_html
defenestrate_html

A new favorite

AUTHOR

Daniel Muey, http://drmuey.com/cpan_contact.pl

COPYRIGHT AND LICENSE

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.