数据库中含有双引号,想问一下在输出时要怎么过滤掉呢?

songm 2004-10-24 11:01:09
如题
...全文
155 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
serverme 2004-10-24
  • 打赏
  • 举报
回复
function changechr(str)
changechr=replace(replace(replace(replace(str,"<","<"),">",">"),chr(13),"<br>")," "," ")
end function
lincai 2004-10-24
  • 打赏
  • 举报
回复
str=rs("str")
str=replace(str,chr(34),"")
777dragon 2004-10-24
  • 打赏
  • 举报
回复
strText = 。。。。。。

strText = Replace(strText,"""",""") '双引号

strText = Replace(strText,"'","'") '单引号

。。。。。。

???
Jaron 2004-10-24
  • 打赏
  • 举报
回复
替换成 "
777dragon 2004-10-24
  • 打赏
  • 举报
回复
Replace(expression, find, replacewith)

用什么替换你自己决定就行了,空就不用"
songm 2004-10-24
  • 打赏
  • 举报
回复
strText = Replace(strText,"""",""") '双引号

这样可以替换吗,我是要把"换成空。
古侠 2004-10-24
  • 打赏
  • 举报
回复
str=rs("str")
str=replace(str,"'","")

28,391

社区成员

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

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