diff --git a/core/modules/file/file.field.inc b/core/modules/file/file.field.inc index c24102c..8a64332 100644 --- a/core/modules/file/file.field.inc +++ b/core/modules/file/file.field.inc @@ -5,7 +5,7 @@ * Field module functionality for the File module. */ -use Drupal\Component\Utility\Xss; +use Drupal\Component\Utility\Html; use Drupal\field\FieldInterface; /** @@ -183,7 +183,7 @@ function theme_file_upload_help($variables) { $descriptions = array(); if (!empty($description)) { - $descriptions[] = Xss::filterAdmin($description); + $descriptions[] = Html::normalize($description); } if (isset($cardinality)) { if ($cardinality == -1) {