您现在的位置是:网站首页> 编程资料编程资料

ASP常用函数:ReplaceHTML_ASP基础_

2023-05-25 149人已围观

简介 ASP常用函数:ReplaceHTML_ASP基础_

<%
'去掉HTML标记

Public Function ReplaceHTML(Textstr)
    Dim Str, re
    Str = Textstr
    Set re = New RegExp
    re.IgnoreCase = True
    re.Global = True
    re.Pattern = "<(.[^>]*)>"
    Str = re.Replace(Str, "")
    Set Re = Nothing
    ReplaceHTML = Str
End Function
%>

-六神源码网