1
This commit is contained in:
@@ -340,6 +340,8 @@ class SkuController extends BaseController
|
|||||||
$html = preg_replace('/\s+/u', ' ', $html);
|
$html = preg_replace('/\s+/u', ' ', $html);
|
||||||
$html = str_replace(['<p></p>', '<p> </p>'], '', $html);
|
$html = str_replace(['<p></p>', '<p> </p>'], '', $html);
|
||||||
|
|
||||||
|
// 只保留 body 内容
|
||||||
|
if (preg_match('/<body[^>]*>(.*?)<\/body>/is', $html, $m)) {
|
||||||
return trim($html);
|
return trim($html);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user