熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

ASP函數:移除HTML代碼

2013-11-13 10:36:02  來源: .NET編程 

  ASP移除所有HTML代碼的函數

Function RemoveHTML( strText )
Dim RegEx
Set RegEx = New RegExp
RegExPattern = "<[^>]*>"
RegExGlobal = True
RemoveHTML = RegExReplace(strText "")
RemoveHTML = replace(RemoveHTML" "" ")
End Function
 


From:http://tw.wingwit.com/Article/program/net/201311/14087.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.