`

asp 去 html代码函数

阅读更多

function nohtml(str)
dim re
Set re=new RegExp
re.IgnoreCase =true
re.Global=True
re.Pattern="(<.[^<]*>)"
str=re.replace(str," ")
re.Pattern="(</[^<]*>)"
str=re.replace(str," ")
nohtml=str
set re=nothing
end function

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics