最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp 去除所有html标签正则表达式
时间:2022-07-02 23:08:50 编辑:袖梨 来源:一聚教程网
Function RemoveSpan(byval strContent)
Dim objReg ,strTmp
If strContent="" OR ISNull(strContent) Then Exit Function
Set objReg=new RegExp
objReg.IgnoreCase =True
objReg.Global=True
objReg.Pattern="]*)>|"
strTmp=objReg.Replace(strContent, "")
Set objReg=Nothing
RemoveSpan=strTmp
strTmp=""
End Function
Function RemoveHtml(byval strContent)
Dim objReg ,strTmp
If strContent="" OR ISNull(strContent) Then Exit Function
Set objReg=new RegExp
objReg.IgnoreCase =True
objReg.Global=True
objReg.Pattern="<(.[^>]*)>"
strTmp=objReg.Replace(strContent, "|")
Set objReg=Nothing
RemoveHtml=strTmp
strTmp=""
End Function