最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp中正则表达式过滤html代码函数
时间:2011-12-18 编辑:简简单单 来源:一聚教程网
代码如下 | 复制代码 |
<% Function stripHTML(strHTML) Dim objRegExp, strOutput objRegExp.IgnoreCase = True 'Replace all HTML tag matches with the empty string 'Replace all < and > with < and > stripHTML = strOutput 'Return the value of strOutput Set objRegExp = Nothing |
使用方法
代码如下 | 复制代码 |
stripHTML(strhtml)就可以了,这样用起来就方便多了 |
-
上一个: asp实现限制IP或IP段访问网站代码
-
下一个: asp入门函数语法速查手册
相关文章
- VBS 批量Ping的项目讲解 09-19
- 如何封装一个Ajax函数介绍 09-16
- ASP实现加法验证码方法 09-16
- ASP错误捕获的几种常规处理方法介绍 09-16
- ajax实现城市三级联动的代码介绍 09-16
- asp中获取日期为星期几的技巧 09-14