public function scriptReplace($string){
$preg = "/<script[\s\S]*?<\/script>/i";
return preg_replace($preg,"",$string,-1);
}
时间: 2024-10-10 04:58:05
public function scriptReplace($string){
$preg = "/<script[\s\S]*?<\/script>/i";
return preg_replace($preg,"",$string,-1);
}