From da8b0d7268fa4c5365117ddd41abcc7f1eb8bb9b Mon Sep 17 00:00:00 2001 From: JerryYan <792602257@qq.com> Date: Sun, 16 Aug 2020 15:33:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E4=BA=A4=E6=98=93=E8=A7=84?= =?UTF-8?q?=E5=88=99=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hyhproject/admin/model/TradeRule.php | 1 + 1 file changed, 1 insertion(+) diff --git a/hyhproject/admin/model/TradeRule.php b/hyhproject/admin/model/TradeRule.php index 1bca90c..69745a2 100644 --- a/hyhproject/admin/model/TradeRule.php +++ b/hyhproject/admin/model/TradeRule.php @@ -48,6 +48,7 @@ class TradeRule extends Base public function add(){ $data = input('post.'); WSTUnset($data,'id,dataFlag,isShow'); + $data['content'] = htmlspecialchars_decode($data['content']); $data['create_time'] = date('Y-m-d H:i:s'); Db::startTrans(); try{