From dd2236ed7adfcb91c1c35dfddf16ee3fd4aa18d7 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Sat, 5 Jul 2014 00:17:30 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20OG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ground/controllers/IndexController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ground/controllers/IndexController.php b/ground/controllers/IndexController.php index b390d1d..4566e35 100644 --- a/ground/controllers/IndexController.php +++ b/ground/controllers/IndexController.php @@ -53,8 +53,10 @@ class IndexController extends Controller $point = new Point(); $point = $point->getByPK($id); - $point->descriptionHtml = htmlspecialchars($point->description); $point->name = htmlspecialchars($point->name); + $point->descriptionHtml = nl2br(htmlspecialchars($point->description)); + $point->descriptionHtml .= '

Посмотреть на карте: http://wikipoints.ru/?point='.$id; + $point->descriptionHtml .= '

#wikipoints'; $og['title'] = $point->name . ' - wikipoints.ru'; $og['description'] = $point->descriptionHtml;