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 ...

  1. < 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).

  2. Using an HTML Parser Library you can find one there for any popular programming language. I recommend using the HTML Agility Pack.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -