Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Component / Render / MarkupTrait.php
index 59e98c3730cac0dc8afa2293c7a2a6ad1080706c..c7faa81abae7cd0976b0b0ac290a75ccf8f4107c 100644 (file)
@@ -2,8 +2,6 @@
 
 namespace Drupal\Component\Render;
 
-use Drupal\Component\Utility\Unicode;
-
 /**
  * Implements MarkupInterface and Countable for rendered objects.
  *
@@ -61,7 +59,7 @@ trait MarkupTrait {
    *   The length of the string.
    */
   public function count() {
-    return Unicode::strlen($this->string);
+    return mb_strlen($this->string);
   }
 
   /**