Home > Archive > PERL CGI Beginners > November 2006 > Stripping HTML code from emails
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Stripping HTML code from emails
|
|
| Richard Bagshaw 2006-11-08, 7:55 am |
| Hi Guys,
I'm writing some code that basically checks a pop mailbox and puts the
information into a mysql database, however if the person sends an email
in HTML format it looks messy, I am looking for a perl module that will
convert it to plain text or just strip the HTML. Does anyone have any
ideas on a module to-do this?
Thanks,
Richard
| |
| Zentara 2006-11-09, 6:55 pm |
| On Wed, 8 Nov 2006 13:09:21 -0000, richard@bagshaw.co.uk ("Richard
Bagshaw") wrote:
>I'm writing some code that basically checks a pop mailbox and puts the
>information into a mysql database, however if the person sends an email
>in HTML format it looks messy, I am looking for a perl module that will
>convert it to plain text or just strip the HTML. Does anyone have any
>ideas on a module to-do this?
Try these for ideas.
http://perlmonks.org?node_id=337460
http://perlmonks.org?node_id=578396
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
| |
| Randal L. Schwartz 2006-11-09, 6:55 pm |
| >>>>> ""Richard" == "Richard Bagshaw" <richard@bagshaw.co.uk> writes:
"Richard> I'm writing some code that basically checks a pop mailbox and puts the
"Richard> information into a mysql database, however if the person sends an email
"Richard> in HTML format it looks messy, I am looking for a perl module that will
"Richard> convert it to plain text or just strip the HTML. Does anyone have any
"Richard> ideas on a module to-do this?
See my article "A MIME is a terrible thing to waste",
<http://www.stonehenge.com/merlyn/UnixReview/col37.html>.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
|
|
|
|
|