'================================================'函数名:ReplaceTrim'作 用:过滤掉字符中所有的tab和回车和换行'================================================ Public Function ReplaceTrim(ByVal strContent) On Error R...
http://www.jb51.net//article/11228.htm
对于提交的HTML代码,如果含有script,iframe,frameset等标记,对网站本身会构成一定的潜在威胁,使用下面的函数可以过滤掉指定的HTML标记。注:1.对于单标记(如:<hr />,<br />等),因其对网站本身不会构成威胁,故未将单标记纳过过滤范围。2.参数strHTML:待过滤处理的HTML代码内容3.参数strTAGs:为待过滤掉的HTML标记名,各标记名以英文逗号( , )为间隔[code]<% ’Wrtten by i{At}CnLei.Com Functi...
http://www.jb51.net//article/6484.htm
如何编写一个过滤掉HTML代码的函数?<%FunctionFilterhtml(strToFilter) DimstrTemp strTemp=strToFilter WhileInstr(1,strTemp,"<")ANDInstr(1,strTemp,">") strTemp=Left(strTemp,Instr(1,strTemp,"<")-1)&Right(strTemp,Len(strTemp)-Instr(1,strTemp,">")) WEnd Filterhtml=st...
http://www.jb51.net//article/4674.htm
共有:3/10,当前1/1页
[首页] [上一页]
1
[下一页] [尾页]
转到:
