in reply to Remove HTML tags from document

And in the spirit of TIMTOWTDI...

If you just need to strip all the html tags from a page, and are on a platform with lynx, you can use:

#! /usr/bin/perl use strict; use warnings; my $text=`lynx -dump htmlDocument.html`; print "$text";

HTH
Daeve

Replies are listed 'Best First'.
Re: Re: Remove HTML tags from document
by matth (Monk) on Aug 04, 2003 at 08:36 UTC
    How can I get this to print out to a file instead of the STDOUT? I have very large HTML files.
      perldoc -f open perldoc -f print perldoc perlopentut

      Abigail

      A reply falls below the community's threshold of quality. You may see it by logging in.
A reply falls below the community's threshold of quality. You may see it by logging in.