Косметические правки по разметке - длинное тире

This commit is contained in:
Krivchikov Dmitry 2015-09-11 14:00:48 +03:00
parent 450196b1c6
commit d1e6b21af5
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ class Markdown
$string = preg_replace($pr, $rep, $string); $string = preg_replace($pr, $rep, $string);
// \n & \r // \n & \r
$string = str_replace(array("\n","\r"), ' ', $string); $string = str_replace(array("\n","\r",' -- '), array(' ', ' ',' – '), $string);
// multi-space // multi-space
$pr = '(\s{2,})'; $pr = '(\s{2,})';

View File

@ -78,7 +78,7 @@ class ArticlesController extends Controller
$text = $_POST['text']; $text = $_POST['text'];
$html = strip_tags($text); $html = strip_tags($text);
$html = str_replace(array('<','>','"',"'",'--'), array('&lt;','&gt;','&Prime;','&prime;','&ndash;'), $html); $html = str_replace(array('<','>','"',"'",' -- '), array('&lt;','&gt;','&Prime;','&prime;',' &ndash; '), $html);
$html = Markdown::processing($html); $html = Markdown::processing($html);
$html = nl2br($html); $html = nl2br($html);