我的SSRS数据集返回带有HTML的字段,例如
<b>blah blah </b><i> blah </i>.
如何剥离所有HTML标记?必须通过内联VB.NET完成
不能更改表中的数据。
找到解决方案 ... = System.Text.RegularExpressions.Regex.Replace(StringWithHTMLtoStrip,“<[^>] +>”,“”)
最佳答案
谢谢Daniel,但我需要以内联方式完成...这是解决方案:= System.Text.RegularExpressions.Regex.Replace(StringWithHTMLtoStrip, "<[^>]+>","")
这里是链接:
http://weblogs.asp.net/rosherove/archive/2003/05/13/6963.aspx
http://msdn.microsoft.com/en-us/library/ms157328.aspx
关于vb.net - 在SSRS 2005(VB.NET)中从字符串中剥离HTML,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34926/