强烈求助!不吝赐教!

hancent 2007-05-24 02:34:47
为什么我保存到数据库中的图片地址是“<IMG src="http://image2.sina.com.cn/ty/l/2007-05-17/U352P6T12D2926344F44DT20070517101316.jpg" border=0>”

然后在页面中显示出来的是“<IMG src="http://image2.sina.com.cn/ty/l/2007-05-17/U352P6T12D2926344F44DT20070517101316.jpg" border=0>


有没有办法在页面中直接显示出来?

多谢了。
...全文
382 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wcwtitxu 2007-05-24
  • 打赏
  • 举报
回复
response.write replace(rs("XXX"), "&", "&")
hookee 2007-05-24
  • 打赏
  • 举报
回复
村的时候可能经过htmlencode了.
str = "<IMG src="http://image2.sina.com.cn/ty/l/2007-05-17/U352P6T12D2926344F44DT20070517101316.jpg" border=0>"
str = replace(str, """, """")
str = replace(str, "'", "'")
str = replace(str, "<", "<")
str = replace(str, ">", ">")
str = replace(str, "&", "&")
response.write str

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧