PerlIO::via::StripHTML - PerlIO layer to strip HTML tags from an input file
use PerlIO::via::StripHTML; open my $file, '<:via(StripHTML)', 'foo.html' or die "Can't open foo.html: $!\n";
This package implements a PerlIO layer, for reading files only. It strips HTML tags from the input, leaving only plain text. This can be useful, for example, to find something in the text of a HTML page.
This is only a preliminary version.
PerlIO::via
Copyright (c) 2002 Rafael Garcia-Suarez. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The HTML stripping code was borrowed from the eg/htext script in the HTML-Parser distribution.
HTML-Parser
To install PerlIO::via::StripHTML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PerlIO::via::StripHTML
CPAN shell
perl -MCPAN -e shell install PerlIO::via::StripHTML
For more information on module installation, please visit the detailed CPAN module installation guide.