public function scriptReplace($string){ $preg = "/<script[sS]*?</script>/i"; return preg_replace($preg,"",$string,-1); }