asp调用内容替换html标签

来源:互联网 发布:java应届生怎么找工作 编辑:程序博客网 时间:2024/05/22 00:15

函数如下:

 

Function RemoveHTML(strText)
 Dim RegExs
 Set RegExs = New RegExp 
 RegExs.Pattern = "<[^>]*>"
 RegExs.Global = True 
 RemoveHTML = RegExs.Replace(strText, "")
End Function

 

使用方法:

 

直接RemoveHTML(内容)

这样就屏蔽了所有的html标签