This commit is contained in:
2025-12-16 16:02:33 +08:00
parent f9b8a4748b
commit 25623b09b5
+2
View File
@@ -340,6 +340,8 @@ class SkuController extends BaseController
$html = preg_replace('/\s+/u', ' ', $html);
$html = str_replace(['<p></p>', '<p> </p>'], '', $html);
// 只保留 body 内容
if (preg_match('/<body[^>]*>(.*?)<\/body>/is', $html, $m)) {
return trim($html);
}