作者 邓超

x

@@ -825,7 +825,9 @@ function getBodyHtml($body){ @@ -825,7 +825,9 @@ function getBodyHtml($body){
825 } 825 }
826 826
827 if($html){ 827 if($html){
828 - $h = @strip_tags($html); 828 + $h = preg_replace('/<style.*?<\/style>/is', '', $html);
  829 + $h = preg_replace('/<script.*?<\/script>/is', '', $h);
  830 + $h = @strip_tags($h);
829 if($h){ 831 if($h){
830 $html = $h; 832 $html = $h;
831 } 833 }