dim re,str
Set re=new RegExp
re.IgnoreCase =true
re.Global=True
re.Pattern="(/<.[^/<]*/>)"
str=re.replace(str," ")
re.Pattern="(/<//[^/<]*/>)"
str=re.replace(str," ")
str=replace(str," ","")
str=replace(str," ","")
nohtml=str
set re=nothing
ASP过滤样式标签
最新推荐文章于 2021-05-30 19:03:58 发布
本文介绍了一种使用正则表达式去除HTML标签的方法。通过设置不同的匹配模式,可以有效地清除文本中的HTML标签,使得纯文本内容得以保留。
104

被折叠的 条评论
为什么被折叠?



