|
...
|
...
|
@@ -850,11 +850,11 @@ function getBodyHtml($body){ |
|
|
|
$h = preg_replace('/<style.*?<\/style>/is', '', $html);
|
|
|
|
$h = preg_replace('/<script.*?<\/script>/is', '', $h);
|
|
|
|
// 有不规则的html,导致异常
|
|
|
|
$h = str_replace(
|
|
|
|
['style="direction:ltr""'],
|
|
|
|
['style="direction:ltr"'],
|
|
|
|
$h);
|
|
|
|
$h = @strip_tags($h);
|
|
|
|
// $h = str_replace(
|
|
|
|
// ['style="direction:ltr""'],
|
|
|
|
// ['style="direction:ltr"'],
|
|
|
|
// $h);
|
|
|
|
// $h = @strip_tags($h);
|
|
|
|
if($h){
|
|
|
|
$html = $h;
|
|
|
|
}
|
...
|
...
|
|