Re: Strip HTML from files in a directory
- From: rob.dixon@xxxxxxx (Rob Dixon)
- Date: Thu, 30 Oct 2008 03:57:50 +0000
bdy wrote:
Does anyone know if there's a way to use an HTML stripper in Perl to
scrub the HTML from all files in a specified directory? If so, would
you point me in the correct direction.
I would recommend something like
use HTML::TreeBuilder;
my $tree = HTML::TreeBuilder->new_from_content($html);
print $tree->as_text;
but the details depend on your application.
HTH,
Rob
.
- References:
- Strip HTML from files in a directory
- From: bdy
- Strip HTML from files in a directory
- Prev by Date: Re: Curly braces and the logic of PERL
- Next by Date: Re: Curly braces and the logic of PERL
- Previous by thread: RE: Strip HTML from files in a directory
- Next by thread: Tracking which elements from an array have been matched.
- Index(es):
Relevant Pages
|