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