作者 邓超

x

@@ -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;