去除所有JavaScript标记

 function replaceJs($document)

{

$document=trim($document);

if (strlen($document) <= 0) return $document;

$search=array("'<script[^>]*?>.*?</script>'si");

$replac=array("");

return @preg_replace ($search, $replac, $document);

}

 

相关内容推荐

返回
顶部