From d1e6b21af52e88fd4d8d53a23533fd7c6220143b Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Fri, 11 Sep 2015 14:00:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D1=81=D0=BC=D0=B5=D1=82=D0=B8?= =?UTF-8?q?=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=BF=D0=BE=20=D1=80=D0=B0=D0=B7=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D0=BA=D0=B5=20-=20=D0=B4=D0=BB=D0=B8=D0=BD=D0=BD=D0=BE?= =?UTF-8?q?=D0=B5=20=D1=82=D0=B8=D1=80=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ground/classes/Markdown.php | 2 +- ground/controllers/ArticlesController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ground/classes/Markdown.php b/ground/classes/Markdown.php index 5adff6b..c3d3eca 100644 --- a/ground/classes/Markdown.php +++ b/ground/classes/Markdown.php @@ -94,7 +94,7 @@ class Markdown $string = preg_replace($pr, $rep, $string); // \n & \r - $string = str_replace(array("\n","\r"), ' ', $string); + $string = str_replace(array("\n","\r",' -- '), array(' ', ' ',' – '), $string); // multi-space $pr = '(\s{2,})'; diff --git a/ground/controllers/ArticlesController.php b/ground/controllers/ArticlesController.php index e01f56e..4e6c3b1 100644 --- a/ground/controllers/ArticlesController.php +++ b/ground/controllers/ArticlesController.php @@ -78,7 +78,7 @@ class ArticlesController extends Controller $text = $_POST['text']; $html = strip_tags($text); - $html = str_replace(array('<','>','"',"'",'--'), array('<','>','″','′','–'), $html); + $html = str_replace(array('<','>','"',"'",' -- '), array('<','>','″','′',' – '), $html); $html = Markdown::processing($html); $html = nl2br($html);