1
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user