在SSRS 2005(VB.NET)中从字符串中剥离HTML

rom*_*n m 10 vb.net reporting-services

我的SSRS DataSet返回一个带有HTML的字段,例如

<b>blah blah </b><i> blah </i>.
Run Code Online (Sandbox Code Playgroud)

如何删除所有HTML标记?必须使用内联 VB.NET

不能选择更改表中的数据.

找到解决方案 ... = System.Text.RegularExpressions.Regex.Replace(StringWithHTMLtoStrip,"<[^>] +>","")

rom*_*n m 13

Thanx到丹尼尔,但我需要它内联...这是解决方案:

= 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