Skip to content
Snippets Groups Projects
Commit e6892cd5 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1889376 by Wim Leers, grisendo: Fixed Field label not sanitized.

parent e5e34450
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -80,7 +80,7 @@ public function generate(EntityInterface $entity, FieldInstance $instance, $lang
$label = $instance['label'];
$editor = $this->editorManager->createInstance($editor_id);
$metadata = array(
'label' => $label,
'label' => check_plain($label),
'access' => TRUE,
'editor' => $editor_id,
'aria' => t('Entity @type @id, field @field', array('@type' => $entity->entityType(), '@id' => $entity->id(), '@field' => $label)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment