Skip to content
This repository
Browse code

Merge pull request #945 from aleho/2.3

Use bytcode sequence for unicode ellipsis

Fixes #3356
  • Loading branch information...
commit 7e00be8f76c7c7db346f1af466d79f360bd22926 2 parents fe4f9f2 + c7fda56
Mark Story markstory authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/Cake/Utility/String.php
2  lib/Cake/Utility/String.php
@@ -479,7 +479,7 @@ public static function truncate($text, $length = 100, $options = array()) {
479 479 if (isset($options['ending'])) {
480 480 $default['ellipsis'] = $options['ending'];
481 481 } elseif (!empty($options['html']) && Configure::read('App.encoding') == 'UTF-8') {
482   - $default['ellipsis'] = chr(226);
  482 + $default['ellipsis'] = "\xE2\x80\xA6";
483 483 }
484 484 $options = array_merge($default, $options);
485 485 extract($options);

0 comments on commit 7e00be8

Please sign in to comment.
Something went wrong with that request. Please try again.