我有一大串HTML,我已经用一堆已经形成的链接解析过了。我正在寻找一种快速的方法来摆脱所有的链接来显示文本。任何帮助或建议表示赞赏!如何从C#中的大型html字符串中删除所有<a></a>标签?
样本HTML字符串看起来是这样的:
<A href="test.com">myText</A>, <A href="test1.com">myText</A>, <A href="test2.com">myText</A>, <A href="differenttesturl.com">myText</A>, <A href="test0.com">myText</A>
我想要的HTML看起来像这样当它这样做:
会将myText,会将myText,会将myText,会将myText,会将myText
我在ASP.NET页面上使用C#并将HTML存储为STRING,
谢谢。
http://stackoverflow.com/questions/787932/using-c-regular-expressions-to-remove-html-tags/787951#787951 – dotjoe 2010-12-10 00:34:01