|
@@ -174,6 +174,11 @@ class Content
|
|
$content = $data['content'];
|
|
$content = $data['content'];
|
|
$replace = array();
|
|
$replace = array();
|
|
|
|
|
|
|
|
+ # 过滤宽度
|
|
|
|
+ if (strstr($data['content'], 'width:')) {
|
|
|
|
+ $content = preg_replace('/width:(.*?)px/', 'width:100%', $content);
|
|
|
|
+ }
|
|
|
|
+
|
|
# 小程序
|
|
# 小程序
|
|
if (strstr($data['content'], 'data-applet')) {
|
|
if (strstr($data['content'], 'data-applet')) {
|
|
preg_match_all('/<img(.*?)data-applet="(.*?)" \/>/', $content, $matches);
|
|
preg_match_all('/<img(.*?)data-applet="(.*?)" \/>/', $content, $matches);
|