正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论