Remove script functiondelScript ($ string) {$ pregfindarray (script. *. * scriptsiU, on (mousewheel | mouseover | click | load | onload | submit | focus | blur) [^] * I); $ pregreplacearray (,); $ stringpreg_replace ($ pregfind, $ pregrep
// Remove the script function delScript ($ string) {$ pregfind = array ("/script. *. * // script/siU ", '/on (mousewheel | mouseover | click | load | onload | submit | focus | blur) = "[^"] * "/I '); $ pregreplace = array ('', ''); $ string = preg_replace ($ pregfind, $ pregrep
// Remove the script function delScript ($ string) {$ pregfind = array ("/<script. *>. * <// script>/siU ", '/on (mousewheel | mouseover | click | load | onload | submit | focus | blur) = "[^"] * "/I '); $ pregreplace = array ('', ''); $ string = preg_replace ($ pregfind, $ pregreplace, $ string ); return $ string ;}
This mainly serves to empty replace the script and the intermediate part of the script.