From 6ca1bc7bf8aac1696bfe51fbc4ce8acde424159f Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 12 May 2017 17:18:42 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=89=8B=E6=9C=BA=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Review.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/wechat/controller/Review.php b/application/wechat/controller/Review.php index eeb586797..b4511a24f 100644 --- a/application/wechat/controller/Review.php +++ b/application/wechat/controller/Review.php @@ -29,7 +29,7 @@ class Review extends Controller { $get = $this->request->get(); // 内容 $content = $this->request->get('content', ''); - $this->assign('content', $content); + $this->assign('content', str_replace("\n", '
', $content)); // 类型 $type = $this->request->get('type', 'text'); $this->assign('type', $type);