正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
| @@ -849,6 +849,11 @@ function getBodyHtml($body){ | @@ -849,6 +849,11 @@ function getBodyHtml($body){ | ||
| 849 | if($html){ | 849 | if($html){ |
| 850 | $h = preg_replace('/<style.*?<\/style>/is', '', $html); | 850 | $h = preg_replace('/<style.*?<\/style>/is', '', $html); |
| 851 | $h = preg_replace('/<script.*?<\/script>/is', '', $h); | 851 | $h = preg_replace('/<script.*?<\/script>/is', '', $h); |
| 852 | + // 有不规则的html,导致异常 | ||
| 853 | + $h = str_replace( | ||
| 854 | + ['style="direction:ltr""'], | ||
| 855 | + ['style="direction:ltr"'], | ||
| 856 | + $h); | ||
| 852 | $h = @strip_tags($h); | 857 | $h = @strip_tags($h); |
| 853 | if($h){ | 858 | if($h){ |
| 854 | $html = $h; | 859 | $html = $h; |
-
请 注册 或 登录 后发表评论