Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Component/Render/HtmlEscapedText.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\Component\Render; | 3 namespace Drupal\Component\Render; |
4 | 4 |
5 use Drupal\Component\Utility\Html; | 5 use Drupal\Component\Utility\Html; |
6 use Drupal\Component\Utility\Unicode; | |
7 | 6 |
8 /** | 7 /** |
9 * Escapes HTML syntax characters to HTML entities for display in markup. | 8 * Escapes HTML syntax characters to HTML entities for display in markup. |
10 * | 9 * |
11 * This class can be used to provide theme engine-like late escaping | 10 * This class can be used to provide theme engine-like late escaping |
41 | 40 |
42 /** | 41 /** |
43 * {@inheritdoc} | 42 * {@inheritdoc} |
44 */ | 43 */ |
45 public function count() { | 44 public function count() { |
46 return Unicode::strlen($this->string); | 45 return mb_strlen($this->string); |
47 } | 46 } |
48 | 47 |
49 /** | 48 /** |
50 * {@inheritdoc} | 49 * {@inheritdoc} |
51 */ | 50 */ |