How to get rid of HTML tags in a message?

The last time I used EWS MAPI to connect to Exchange Server. After that, I get access to my letters and first show their body (containing LOT HTML tags) in gridview. After selecting the entry of this gridview, the body is displayed in freetextbox.

My problem is that I want to get rid of the HTML in the body. And configure freetextbox so that it still displays the text in its true format.

Thanks in advance.

0
source share
3 answers

You can use regular expressions.

look at here

+2
source

You can use the Html Agility Pack to parse the Html and share what you want. There is a lot of information about this, for example: How to use the HTML flexibility package

+1
source

All Articles