Skip to content

Commit

Permalink
Merge pull request #945 from aleho/2.3
Browse files Browse the repository at this point in the history
Use bytcode sequence for unicode ellipsis

Fixes #3356
  • Loading branch information
markstory committed Nov 9, 2012
2 parents fe4f9f2 + c7fda56 commit 7e00be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/String.php
Expand Up @@ -479,7 +479,7 @@ public static function truncate($text, $length = 100, $options = array()) {
if (isset($options['ending'])) {
$default['ellipsis'] = $options['ending'];
} elseif (!empty($options['html']) && Configure::read('App.encoding') == 'UTF-8') {
$default['ellipsis'] = chr(226);
$default['ellipsis'] = "\xE2\x80\xA6";
}
$options = array_merge($default, $options);
extract($options);
Expand Down

0 comments on commit 7e00be8

Please sign in to comment.