From a346da83c9e807fbea1e473bfcdc87dc839cb2a3 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Sat, 5 Jul 2014 00:22:20 +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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ground/controllers/IndexController.php b/ground/controllers/IndexController.php index 4566e35..46ca978 100644 --- a/ground/controllers/IndexController.php +++ b/ground/controllers/IndexController.php @@ -54,9 +54,9 @@ class IndexController extends Controller $point = new Point(); $point = $point->getByPK($id); $point->name = htmlspecialchars($point->name); - $point->descriptionHtml = nl2br(htmlspecialchars($point->description)); - $point->descriptionHtml .= '

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

#wikipoints'; + $point->descriptionHtml = htmlspecialchars($point->description); + $point->descriptionHtml .= '\n \n Посмотреть на карте: http://wikipoints.ru/?point='.$id; + $point->descriptionHtml .= '\n \n #wikipoints'; $og['title'] = $point->name . ' - wikipoints.ru'; $og['description'] = $point->descriptionHtml;