diff --git a/core/modules/views/src/Plugin/views/field/Field.php b/core/modules/views/src/Plugin/views/field/Field.php index bc13127..d5d67fc 100644 --- a/core/modules/views/src/Plugin/views/field/Field.php +++ b/core/modules/views/src/Plugin/views/field/Field.php @@ -8,7 +8,7 @@ namespace Drupal\views\Plugin\views\field; use Drupal\Component\Utility\SafeMarkup; -use Drupal\Component\Utility\Xss; +use Drupal\Component\Utility\Xss as UtilityXss; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Entity\EntityStorageInterface; @@ -913,7 +913,7 @@ protected function addSelfTokens(&$tokens, $item) { (is_object($item['raw']) ? (array)$item['raw'] : NULL); } if (isset($raw) && isset($raw[$id]) && is_scalar($raw[$id])) { - $tokens['{{ ' . $this->options['id'] . '-' . $id . ' }}'] = Xss::filterAdmin($raw[$id]); + $tokens['{{ ' . $this->options['id'] . '-' . $id . ' }}'] = UtilityXss::filterAdmin($raw[$id]); } else { // Make sure that empty values are replaced as well.