Skip to content

Commit

Permalink
Replace … with …
Browse files Browse the repository at this point in the history
UTF-8 symbols are much more tractable with filters like HTML escaping.

Follow-on fix to ticket #1184.
  • Loading branch information
bharat committed Jul 10, 2010
1 parent fe8cb89 commit ab6025f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/helpers/text.php
Expand Up @@ -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) ? '…' : $end_char;
$end_char = ($end_char === NULL) ? '' : $end_char;

if (trim($str) === '')
return $str;
Expand All @@ -46,7 +46,7 @@ public static function limit_words($str, $limit = 100, $end_char = NULL)
*/
public static function limit_chars($str, $limit = 100, $end_char = NULL, $preserve_words = FALSE)
{
$end_char = ($end_char === NULL) ? '…' : $end_char;
$end_char = ($end_char === NULL) ? '' : $end_char;

$limit = (int) $limit;

Expand Down

0 comments on commit ab6025f

Please sign in to comment.