Browse Source

富文本的接收

lizhen_gitee 6 months ago
parent
commit
86f14e2366

+ 2 - 2
application/company/controller/Caozuoguifan.php

@@ -41,7 +41,7 @@ class Caozuoguifan extends Apic
             'title'   => input('title',''),
             'type_id' => input('type_id',0),
             'image' => input('image',''),
-            'content' => input('content',''),
+            'content' => input('content','','htmlspecialchars_decode'),
             'videofile' => input('videofile',''),
             'createtime' => time(),
             'updatetime' => time(),
@@ -71,7 +71,7 @@ class Caozuoguifan extends Apic
             'title'   => input('title',''),
             'type_id' => input('type_id',0),
             'image' => input('image',''),
-            'content' => input('content',''),
+            'content' => input('content','','htmlspecialchars_decode'),
             'videofile' => input('videofile',''),
             'updatetime' => time(),
         ];

+ 2 - 2
application/company/controller/Dongtai.php

@@ -32,7 +32,7 @@ class Dongtai extends Apic
         $data = [
             'title'      => input('title',''),
             'image'      => input('image',''),
-            'content'    => input('content',''),
+            'content'    => input('content','','htmlspecialchars_decode'),
             'company_id' => $this->auth->company_id,
             'createtime' => time(),
             'updatetime' => time(),
@@ -61,7 +61,7 @@ class Dongtai extends Apic
         $data = [
             'title'      => input('title',''),
             'image'      => input('image',''),
-            'content'    => input('content',''),
+            'content'    => input('content','','htmlspecialchars_decode'),
             'updatetime' => time(),
         ];
 

+ 2 - 2
application/company/controller/Jishuguifan.php

@@ -45,7 +45,7 @@ class Jishuguifan extends Apic
             'pid' => $pid,
             'tid' => $tid,
             'name' => input('name',''),
-            'content' => input('content',''),
+            'content' => input('content','','htmlspecialchars_decode'),
             'ismenu' => input('ismenu',1),
             'file' => input('file',''),
             'createtime' => time(),
@@ -87,7 +87,7 @@ class Jishuguifan extends Apic
             'pid' => $pid,
             'tid' => $tid,
             'name' => input('name',''),
-            'content' => input('content',''),
+            'content' => input('content','','htmlspecialchars_decode'),
             'ismenu' => input('ismenu',1),
             'file' => input('file',''),
             'updatetime' => time(),

+ 2 - 2
application/company/controller/Tiaoshiweixiu.php

@@ -44,7 +44,7 @@ class Tiaoshiweixiu extends Apic
         $data = [
             'logo_id' => input('logo_id',0),
             'title'   => input('title',''),
-            'content' => input('content',''),
+            'content' => input('content','','htmlspecialchars_decode'),
             'company_id' => $this->auth->company_id,
             'createtime' => time(),
             'updatetime' => time(),
@@ -77,7 +77,7 @@ class Tiaoshiweixiu extends Apic
         $data = [
             'logo_id' => input('logo_id',0),
             'title'   => input('title',''),
-            'content' => input('content',''),
+            'content' => input('content','','htmlspecialchars_decode'),
             'updatetime' => time(),
         ];
 

+ 2 - 2
application/company/controller/Zhengce.php

@@ -32,7 +32,7 @@ class Zhengce extends Apic
         $data = [
             'title'      => input('title',''),
             'image'      => input('image',''),
-            'content'    => input('content',''),
+            'content'    => input('content','','htmlspecialchars_decode'),
             'company_id' => $this->auth->company_id,
             'createtime' => time(),
             'updatetime' => time(),
@@ -61,7 +61,7 @@ class Zhengce extends Apic
         $data = [
             'title'      => input('title',''),
             'image'      => input('image',''),
-            'content'    => input('content',''),
+            'content'    => input('content','','htmlspecialchars_decode'),
             'updatetime' => time(),
         ];