summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-09-25 16:40:30 +1000
committerSavetheinternet <savetheinternet@tinyboard.org>2011-09-25 16:40:30 +1000
commit4ec10dc89a1f0ec7ef3cc5447478995bb75e8d71 (patch)
treed2098c330c3ff89ff7b04a5f4d2ff57b6405d0eb
parent1bb87177930758dcf62172793748dd34f55201eb (diff)
Fixed arrow glyphs in auto unicode
-rw-r--r--inc/functions.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 7ba2278b..d47cecf1 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -1213,15 +1213,15 @@
}
if($config['auto_unicode']) {
- $body = str_replace('...', '…', $body);
- $body = str_replace('<--', '←', $body);
- $body = str_replace('-->', '→', $body);
-
+ $body = str_replace('...', '&hellip;', $body);
+ $body = str_replace('&lt;--', '&larr;', $body);
+ $body = str_replace('--&gt;', '&rarr;', $body);
+
// En and em- dashes are rendered exactly the same in
// most monospace fonts (they look the same in code
// editors).
- $body = str_replace('---', '—', $body); // em dash
- $body = str_replace('--', '–', $body); // en dash
+ $body = str_replace('---', '&ndash;', $body); // em dash
+ $body = str_replace('--', '&mdash;', $body); // en dash
}
// Cites