This commit is contained in:
2025-12-16 16:11:29 +08:00
parent b67b173565
commit d5c9ed8d2f
+7
View File
@@ -376,6 +376,13 @@ class SkuController extends BaseController
$html = $m[1];
}
//限制图片宽度(防止编辑器撑爆)
$html = preg_replace(
'/<img([^>]+)>/i',
'<img$1 style="max-width:100%;">',
$html
);
return $html;
}