用正则过滤网页中的JS/VBS脚本
在PHP中用正则表达式过滤掉HTML网页代码中的JavaScript(VBScript)脚本.在表单过滤中很实用.
[coolcode lang=”php”]
alert(“
我的梦想
快乐男声
hehe
';
$pattern="/
www.webmaster.me
在PHP中用正则表达式过滤掉HTML网页代码中的JavaScript(VBScript)脚本.在表单过滤中很实用.
[coolcode lang=”php”]
alert(“
我的梦想
快乐男声
hehe
';
$pattern="/