From 50d154ec1ac271332d11a7fc528a78d3f53e4a1f Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Wed, 16 Dec 2020 21:31:19 +0000 Subject: [PATCH] Issue #3014121 by Geordi, shreyakaushik11, anmolgoyal74, msankhala, rwohleb, rachel_norfolk, akanksha-hp, jhodgdon: Attribute.php code snippet not properly escaped --- core/lib/Drupal/Core/Template/Attribute.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Template/Attribute.php b/core/lib/Drupal/Core/Template/Attribute.php index e0ca3ba6ac99..cbbe1657f600 100644 --- a/core/lib/Drupal/Core/Template/Attribute.php +++ b/core/lib/Drupal/Core/Template/Attribute.php @@ -32,8 +32,11 @@ * template, use the "without" filter to prevent attributes that have already * been printed from being printed again. For example: * @code - * <cat class="{{ attributes.class }} my-custom-class"{{ attributes|without('class') }}> - * {# Produces <cat class="cat black-cat white-cat black-white-cat my-custom-class" id="socks"> #} + * <cat class="{{ attributes.class }} my-custom-class"{{ attributes|without('class') }}> + * @endcode + * Produces: + * @code + * <cat class="cat black-cat white-cat black-white-cat my-custom-class" id="socks"> * @endcode * * The attribute keys and values are automatically escaped for output with -- GitLab