Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

March 21, 2007

Converting HTML Email Body to Plain Text

Customers frequently ask how to convert HTML email bodies to plain-text. You could simply strip out the HTML tags, but you’ll probably want to be a bit more sophisticated than that. What about scripts and style sheets? Also, BR tags should be converted to CRLF’s. Here’s an example that uses the Chilkat HTML-to-XML component as a helper to convert HTML to plain text (in C#). The equivalent code is available in all the other programming languages supported by Chilkat (C++, Java, Ruby, Perl, Python, ASP, VB6, Delphi, etc.)

https://www.example-code.com/csharp/emailObject_htmlToPlainText.asp


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.