|Think about Loose Coupling|
Display html in plaintextby Spida (Acolyte)
|on Oct 09, 2002 at 12:59 UTC||Need Help??|
Spida has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to parse mails in a perl-script (see http://www.perlmonks.org/index.pl?node_id=203907) and add the contents in a db (and display it in a webfrontend), but occasionally (and getting more frequent) mails have the text in a html attachment.
To display the contents even if the mail is in html, I'm looking for something that would
- strip out all html-tags (no problem, looking for \< and \>)
- let a bit of the formatting be visible
There was such a tool which tried to keep even tables, but I didn't find anything promising.