萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> asp編程 >> ASP函數:移除HTML代碼

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
 

copyright © 萬盛學電腦網 all rights reserved