ASP函数:移除HTML代码

2009-09-30 00:48:42  来源:网页教学网 

WebjxCom提示:ASP移除所有HTML代码的函数.

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

更多