HTML::Parser->new(text_h => [sub {$buf .= shift },
'dtext'])->parse($content) || die $!;/Jonas Nordstr�m -----Ursprungligt meddelande----- Fr�n: ADJE WebMail Technical Support Team [mailto:[EMAIL PROTECTED]] Skickat: den 30 oktober 2001 05:00 Till: [EMAIL PROTECTED] �mne: HTML::Parser question Question: How do I extract the plain text from an HTML file, or, put another way, how do I remove the html markups, just leaving the plain text? I have looked at the example provided in HTML::Parser, in particular HTML-Parser-3.25/eg/htext which comes close to what I need, however, I would like to store the plain text in a variable, as opposed to having it to STDOUT (standard output).... any ideas?? ADJE WebMail Technical Support http://www.adjeweb.com [EMAIL PROTECTED] -->> FREE Perl CGI scripts add WEB ACCESS to your -->> POP E-Mail accounts! Download today!! http://www.adjeweb.com
