asp过滤数据库中含有html标签。
来源:互联网 发布:ubuntu系统升级命令 编辑:程序博客网 时间:2024/04/30 03:07
<!--#include file="include/db_conn.asp" -->
<%
'添加日志
dim rs
set rs=server.CreateObject("ADODB.recordset")
rs.Open "select top 1 * from hd_news where id=125 order by id desc",conn,1,3
if rs.eof and rs.bof then
response.Write("error")
else
dim str
str=rs("content")
end if
rs.close
set rs=nothing
%>
<%
dim re
Set re=new RegExp
re.IgnoreCase =true
re.Global=True
re.Pattern="<.+?>"
str=re.Replace(str,"")
response.write(left(str,200))
%>
<%
'添加日志
dim rs
set rs=server.CreateObject("ADODB.recordset")
rs.Open "select top 1 * from hd_news where id=125 order by id desc",conn,1,3
if rs.eof and rs.bof then
response.Write("error")
else
dim str
str=rs("content")
end if
rs.close
set rs=nothing
%>
<%
dim re
Set re=new RegExp
re.IgnoreCase =true
re.Global=True
re.Pattern="<.+?>"
str=re.Replace(str,"")
response.write(left(str,200))
%>
- asp过滤数据库中含有html标签。
- ASP中过滤UBB和Html标签
- ASP 过滤 HTML 标签
- asp.net过滤html标签
- asp.net 过滤html标签
- Asp.Net中过滤所有的Html标签
- java jsp struts2标签 从数据库中读取含有html标签的数据显示问题
- PHP中HTML标签过滤
- IOS中过滤HTML标签
- IOS中过滤HTML标签
- PHP中过滤html标签
- XML中含有html标签的问题
- ASP过滤特定HTML标签函数
- Asp过滤指定html标签函数
- JSP中从mysql数据库中读取含有html标签的数据问题
- JSP中从mysql数据库中读取含有html标签的数据问题
- JSTL从mysql数据库中读取含有html标签的数据显示
- C# 中对html 标签过滤
- 对ORACLE初学者的一点建议
- 类似于-“中国移动话费单打印”的思路
- jbpm 异常处理与安全问题
- Problem during Miranda development
- 质量是什么?
- asp过滤数据库中含有html标签。
- java.util.Dictionary翻译
- ado.net获取存储过程的返回值
- 可用性ABC
- Asp.net中与codePage="936"有关的css失效等奇怪问题的解决办法(原创)
- Good link for english learning purpose.
- 用php作wap开发时遇到的问题
- 常用函数中常被忽略的小技巧(2)
- VC++6.0学习心得一