过滤掉javascript代码的正则怎么写? "/<script.*>.*<\/script>/isU" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $result = preg_replace("/<script.*>.*<\/script>/isU", "", $str );//$str为你需要过滤的字符串 这样不对,我要把<script></script>这两个标签也都过滤掉,怎么写呢 再加个条件,我要过滤掉以下所有代码(包括这几个标签符号<script></script><input>和标签里的内容):<script>.............</script><input type=button id='converthour_ALL_button' onclick='javascript:if (converthour_ALL_lock==0){converthour_ALL_lock=1;this.value="45.29% 点击解锁";}else{converthour_ALL_lock=0;this.value="45.29% 点击锁定";}' onmouseover='javascript:drawtable(converthour_ALL_total,"converthour_ALL_table","converthour_ALL_total",8454.3)' onmouseout='javascript:if (converthour_ALL_lock==0){document.getElementById("converthour_ALL_table").innerHTML="";}' value='45.29% 点击锁定'> echo preg_replace('/(<script>.*?<\/script><input.+?javascript.+?\>)/is', '', $str); 求一个PHP生成静态页面的思路。 我的新作,PHP+AJAX聊天室 怎么快速开发一个繁体版本呢? PHP 文件上传的问题 关于多个临时表的排序问题! 为什么我的PHP得不到结果? 初次接触PHP, 困惑中 为什么用mssql_connect()连接MSSQL数据库时会提示未定义函数 如何把數組轉成字符串 怎么避免出现这样的header错误?怎么回事呢? 寻求一个好的模板类 如何多到一个字符串里面,包含某子字符串的个数? [视频教程] PHP+MYSQL网站设计入门实践
<script>.............</script><input type=button id='converthour_ALL_button' onclick='javascript:if (converthour_ALL_lock==0){converthour_ALL_lock=1;this.value="45.29% 点击解锁";}else{converthour_ALL_lock=0;this.value="45.29% 点击锁定";}' onmouseover='javascript:drawtable(converthour_ALL_total,"converthour_ALL_table","converthour_ALL_total",8454.3)' onmouseout='javascript:if (converthour_ALL_lock==0){document.getElementById("converthour_ALL_table").innerHTML="";}' value='45.29% 点击锁定'>