日期:2014-05-16 浏览次数:20318 次
<?php $str = 'yes,<scRipt type="text/javascript"> var IKFromImport=false; </script>ok!'; $text = preg_replace("'<script(.*?)<\/script>'is","",$str); //yes,ok! echo $text;
?
php正则去除页面javascript