当前位置:首页 > ASP教程 > ASP基础

ASP常用函数:ReplaceHTML

<%
'去掉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
%>


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!