Browse Source

Fixed arrow glyphs in auto unicode

pull/40/head
Savetheinternet 13 years ago
parent
commit
4ec10dc89a
  1. 12
      inc/functions.php

12
inc/functions.php

@ -1213,15 +1213,15 @@
} }
if($config['auto_unicode']) { if($config['auto_unicode']) {
$body = str_replace('...', '', $body); $body = str_replace('...', '…', $body);
$body = str_replace('<--', '', $body); $body = str_replace('&lt;--', '&larr;', $body);
$body = str_replace('-->', '→', $body); $body = str_replace('--&gt;', '&rarr;', $body);
// En and em- dashes are rendered exactly the same in // En and em- dashes are rendered exactly the same in
// most monospace fonts (they look the same in code // most monospace fonts (they look the same in code
// editors). // editors).
$body = str_replace('---', '', $body); // em dash $body = str_replace('---', '&ndash;', $body); // em dash
$body = str_replace('--', '', $body); // en dash $body = str_replace('--', '&mdash;', $body); // en dash
} }
// Cites // Cites

Loading…
Cancel
Save