| PerlIO-via-StripHTML documentation | view source | Contained in the PerlIO-via-StripHTML distribution. |
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.
| PerlIO-via-StripHTML documentation | view source | Contained in the PerlIO-via-StripHTML distribution. |