ASP函数:移除HTML代码
http://www.itjxue.com 2015-07-17 01:46 来源:未知 点击次数:
ASP移除所有HTML代码的函数
Function RemoveHTML( strText )
Dim RegEx
Set RegEx = New RegExp
RegEx.Pattern = "<[^>]*>"
RegEx.Global = True
RemoveHTML = RegEx.Replace(strText, "")
RemoveHTML = replace(RemoveHTML," "," ")
End Function