完美过滤script标签
// .* 不能匹配换行
// [\s\S]* 支持匹配换行
// ? 表示匹配最近的一个结束标签</script>
// i 不区分大小写
$html = preg_replace('/<script[\s\S]*?<\/script>/i', '', $html);
完美过滤script标签
// .* 不能匹配换行
// [\s\S]* 支持匹配换行
// ? 表示匹配最近的一个结束标签</script>
// i 不区分大小写
$html = preg_replace('/<script[\s\S]*?<\/script>/i', '', $html);