如何摆脱邮件中的HTML标签? [英] How to get rid of HTML-tags in a message?

查看:283
本文介绍了如何摆脱邮件中的HTML标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我上次使用EWS MAPI连接到Exchange Server.完成此操作后,我将访问我的邮件,并首先在gridview中显示其正文(其中包含很多HTML标签).选择该gridview的记录后,主体将显示在自由文本框中.

For the last time I've been using EWS MAPI to connect to Exchange Server. After this is done I access my mails and firstly display their body (which contains a LOT HTML-tags) in a gridview. After you select a record of that gridview the body is shown in a freetextbox.

我的问题是我想摆脱正文中的HTML.并配置自由文本框,使其仍以其真实格式显示文本.

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

谢谢.

推荐答案

您可以使用正则表达式.

You can use regular expressions.

看看:此处

这篇关于如何摆脱邮件中的HTML标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆