namespace Drupal\Core\Mail;
use Drupal\Component\Utility\Html;
-use Drupal\Component\Utility\Unicode;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Site\Settings;
// Fancy headers.
case 'h1':
$indent[] = '======== ';
- $casing = '\Drupal\Component\Utility\Unicode::strtoupper';
+ $casing = 'mb_strtoupper';
break;
case 'h2':
$indent[] = '-------- ';
- $casing = '\Drupal\Component\Utility\Unicode::strtoupper';
+ $casing = 'mb_strtoupper';
break;
case '/h1':
// Convert inline HTML text to plain text; not removing line-breaks or
// white-space, since that breaks newlines when sanitizing plain-text.
$value = trim(Html::decodeEntities($value));
- if (Unicode::strlen($value)) {
+ if (mb_strlen($value)) {
$chunk = $value;
}
}