ASP函数:移除HTML代码

来源:互联网 时间:1970-01-01

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

相关阅读:
Top