社区
ASP
帖子详情
求段过滤非法字符的代码
liushengan
2004-10-08 09:00:51
如果输入框内出现“博客”这两个字则自动将其转换为Blog。
...全文
190
6
打赏
收藏
求段过滤非法字符的代码
如果输入框内出现“博客”这两个字则自动将其转换为Blog。
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
香椿炒鸡蛋
2004-10-09
打赏
举报
回复
建议用正则表达式 过滤非法字符
777dragon
2004-10-08
打赏
举报
回复
就是Ya! (-___-#)!!! 狼来啦~~~~
cnwhitewolf
2004-10-08
打赏
举报
回复
strText=replace(strText,"博客CSDN","blog")
mind_1220
2004-10-08
打赏
举报
回复
<%
strText = "博客CSDN"
str1="博客"
str2="blog"
strText = Replace(strText,str1,str2)
response.write strText '写出来看看就明白了。
%>
liushengan
2004-10-08
打赏
举报
回复
看不明白
777dragon
2004-10-08
打赏
举报
回复
like this ?
Add....
Function formatStr(strText)
On Error Resume Next
strText = Trim(strText)
If strText="" Then
Exit Function
End If
strText = Replace(strText,"<","<") '左<
strText = Replace(strText,">",">") '右>
strText = Replace(strText,";",";") '分号
strText = Replace(strText,"'","'") '单引号
strText = Replace(strText,"""",""") '双引号
strText = Replace(strText,Chr(9)," ") '空格
strText = Replace(strText, Chr(10) & Chr(10), "<BR><BR>")
strText = Replace(strText,Chr(10),"<br>") '回车
strText = Replace(strText,Chr(13),"") '回车
strText = Replace(strText,Chr(32)," ") '空格
strText = Replace(strText,Chr(34),""") '双引号
strText = Replace(strText,Chr(39),"'") '单引号
strText = Replace(strText,"script","script") 'script
strText = Replace(strText,"(","(") '左(
strText = Replace(strText,")",")") '右)
strText = Replace(strText,"--","--") 'SQL注释符
FormatStr = strText
End Function
windows文件
过滤
与加解密视频教程
内容涵盖了Windows内核工作机制与原理、底层驱动通信原理、fat类文件系统格式、虚拟磁盘、文件
过滤
框架、Windows文件基础以及用户层到内核层文件
过滤
开发等方面,深入浅出地介绍了驱动中的windows文件基础和文件
过滤
...
php
过滤
非法字符
函数,
非法字符
过滤
_PHP教程
非法字符
过滤
本文章主要是讲 php
过滤
非法字符
没讲asp
过滤
非法字符
的函数但是思想都一样的.)
过滤
影响MySQL正常运行的字符。当需要把用户输入的内容(有可能包含单引号、双引号 、反斜线、空字元 NUL )代入到mysql的...
php
过滤
非法字符
函数,利用php怎么对
非法字符
进行
过滤
利用php怎么对
非法字符
进行
过滤
发布时间:2020-12-28 16:41:22来源:亿速云阅读:94作者:Leah这篇文章将为大家详细讲解有关利用php怎么对
非法字符
进行
过滤
,文章内容质量较高,因此小编分享给大家做个参考,希望...
python
过滤
非法字符
python
过滤
非法字符
java
过滤
非法字符
_java,
过滤
去掉文件名
非法字符
为了合理性,
过滤
文件名
非法字符
是必须的,果断地要干掉.....有时候数据库读出来的名字无法再本地创建文件,需要去掉
非法字符
。windows现在已知的文件名
非法字符
有 \ / : * ? " < > |private static Pattern ...
ASP
28,390
社区成员
357,068
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章