|
...
|
...
|
@@ -849,6 +849,11 @@ function getBodyHtml($body){ |
|
|
|
if($html){
|
|
|
|
$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);
|
|
|
|
if($h){
|
|
|
|
$html = $h;
|
...
|
...
|
|