ASP常用函数:ReplaceHTML
程序员文章站
2023-11-16 22:23:58
<% '去掉html标记 public function replacehtml(textstr)  ...
<%
'去掉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
%>
'去掉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
%>
上一篇: PHP运行SVN命令显示某用户的文件更新记录的代码
下一篇: C#实现注册码的方法