gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 03:06:19 25 4
gpt4 key购买 nike

我的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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com