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);