Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stripping HTML tags with Perl



On Mon, Dec 04, 2000 at 01:30:53PM -0800, Drew C. Poulin wrote:
> Simon Cozen

Who he? :)

> I'm getting my toes wet in Perl by trying to strip a file of some
> strings, including HTML tags.

# no Wheel::Reinvent;
use HTML::FormatText;
use HTML::Parse;

$html = parse_htmlfile("nd2");
$formatter = HTML::FormatText->new(leftmargin => 0, rightmargin => 50);
$ascii = $formatter->format($html);

-- 
We all agree on the necessity of compromise.  We just can't agree on
when it's necessary to compromise.
	-- Larry Wall


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links