summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-07-10 14:29:57 -0700
committerBharat Mediratta <bharat@menalto.com>2010-07-10 14:31:29 -0700
commitab6025f71a46d4ed5948c6143ffc90df94c1eaa9 (patch)
treed22450f3c4290e69e4eacfea02a467ddeeaa0c37
parentfe8cb89ac4d4294fcd8c28a0d16b25226b4f2e25 (diff)
Replace &#8230; with …
UTF-8 symbols are much more tractable with filters like HTML escaping. Follow-on fix to ticket #1184.
-rw-r--r--system/helpers/text.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/text.php b/system/helpers/text.php
index bf82f12a..f7f040cd 100644
--- a/system/helpers/text.php
+++ b/system/helpers/text.php
@@ -20,7 +20,7 @@ class text_Core {
public static function limit_words($str, $limit = 100, $end_char = NULL)
{
$limit = (int) $limit;
- $end_char = ($end_char === NULL) ? '&#8230;' : $end_char;
+ $end_char = ($end_char === NULL) ? '…' : $end_char;
if (trim($str) === '')
return $str;
@@ -46,7 +46,7 @@ class text_Core {
*/
public static function limit_chars($str, $limit = 100, $end_char = NULL, $preserve_words = FALSE)
{
- $end_char = ($end_char === NULL) ? '&#8230;' : $end_char;
+ $end_char = ($end_char === NULL) ? '…' : $end_char;
$limit = (int) $limit;