Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Dec : HTML to plain text
| Subject: | HTML to plain text |
| Posted by: | kosanov..@gmail.com |
| Date: | 1 Dec 2006 05:38:44 |
Hello,
I need an easy way to convert HTML email to plain text in Delphi. In VB
it's easy with CDONTS and AutoGenerateTextBody property (so even an
example with CreateOLEObject("cdo.message") will do).
The problem with simple functions and free components you find on the
internet is that they don't support everything they should (HTML4,
style sheets, cutting javescript code etc)
In VB it's:
Set msg = CreateObject("cdo.message")
msg.AutoGenerateTextBody = True
then msg.TextBody is your friend. How do I do this with Delphi?
M.K.