imap - Convert HTML to Plain Text? -
I am able to read emails from Microsoft Exchange using Lumisoft using an IMAP client. I can convert any mail into plain text Although the exchange server setting is set up, when I read in the notification, it also includes HTML / CSS.
What is the best way to remove HTML / CSS from the body of an email? Or is there a setting on the Exchange server that I was missing?
I usually have one of these approaches ...
- < P> Using Regular Expressions If you have a solution to work with any kind of invalid markup, then fixing it may be a bit difficult, but I can bet that someone else has done it to you. (Hint: google or search SO).
-
Using an HTML Parser Library you can find one there for any popular programming language. I recommend using the HTML Agility Pack.
Comments
Post a Comment