asp去除html样式函数,网站首页取前100个字,去掉样式。
2013-05-28 15:25
477 查看
asp去除html样式函数,网站首页取前100个字,去掉样式。
<% Function RemoveHTML(strHTML) Dim objRegExp, Match, Matches Set objRegExp = New Regexp objRegExp.IgnoreCase = True objRegExp.Global = True '取闭合的<> objRegExp.Pattern = "<.+?>" '进行匹配 strHTML=replace(strHTML," ","") Set Matches = objRegExp.Execute(strHTML) ' 遍历匹配集合,并替换掉匹配的项目 For Each Match in Matches strHtml=Replace(strHTML,Match.Value,"") Next RemoveHTML=strHTML Set objRegExp = Nothing End Function
%>
<% Function RemoveHTML(strHTML) Dim objRegExp, Match, Matches Set objRegExp = New Regexp objRegExp.IgnoreCase = True objRegExp.Global = True '取闭合的<> objRegExp.Pattern = "<.+?>" '进行匹配 strHTML=replace(strHTML," ","") Set Matches = objRegExp.Execute(strHTML) ' 遍历匹配集合,并替换掉匹配的项目 For Each Match in Matches strHtml=Replace(strHTML,Match.Value,"") Next RemoveHTML=strHTML Set objRegExp = Nothing End Function
%>
相关文章推荐
- php去除、去掉html标签函数strip_tags
- 怎么去掉织梦网站首页带的index.html/index.php
- ASP去掉字符串中HTML标签的函数
- 去掉html格式函数(彻底版)(有asp和asp.net版本)
- asp去除html的函数代码分析附实例说明
- asp 去掉html中的table正则代码函数
- ASP.NET 去除HTML标记 函数
- asp.ne去除html的函数代码
- Asp 去除Html格式,用于显示输出 函数
- asp 网站静态化函数代码html
- asp.net的sql防注入 和去除html标记的函数
- asp去掉html中的table代码函数
- asp 去除html的函数,要保留段落,换行和空格
- asp 网站静态化函数代码html
- asp 去掉html中的table正则代码函数
- asp.net的sql防注入 和去除html标记的函数
- Asp去掉所有Html格式的函数
- asp中去除内容HTML标签的三个function函数