in reply to Stripping of HTML content
Look at a HTML Parser, either HTML::Parser itself or (even more simply) HTML::TokeParser. Your regexps are fragile, they will break.. try feeding <img src="this.gif" alt="<<THIS>>"> into it, watch it fall over screaming.
If you want a nice full description of HTML parsing, if this is going to be something you're doing a lot of, then peer into 'Perl and LWP' by O'Reilly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Stripping of HTML content
by Nemp (Pilgrim) on Sep 12, 2002 at 16:18 UTC | |
by mp (Deacon) on Sep 12, 2002 at 16:31 UTC |