From bd634aa9668f18f4cee85871946a2d0306727fa4 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org> Date: Thu, 16 Jun 2016 11:20:59 +0100 Subject: [PATCH] Issue #2603074 by joelpittet, alexpott, lauriii: Remove |raw from use in core templates --- core/modules/system/templates/html.html.twig | 8 ++++---- core/themes/classy/templates/layout/html.html.twig | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/modules/system/templates/html.html.twig b/core/modules/system/templates/html.html.twig index 39702c20d45b..ad582d95e2ac 100644 --- a/core/modules/system/templates/html.html.twig +++ b/core/modules/system/templates/html.html.twig @@ -28,10 +28,10 @@ <!DOCTYPE html> <html{{ html_attributes }}> <head> - <head-placeholder token="{{ placeholder_token|raw }}"> + <head-placeholder token="{{ placeholder_token }}"> <title>{{ head_title|safe_join(' | ') }}</title> - <css-placeholder token="{{ placeholder_token|raw }}"> - <js-placeholder token="{{ placeholder_token|raw }}"> + <css-placeholder token="{{ placeholder_token }}"> + <js-placeholder token="{{ placeholder_token }}"> </head> <body{{ attributes }}> <a href="#main-content" class="visually-hidden focusable"> @@ -40,6 +40,6 @@ {{ page_top }} {{ page }} {{ page_bottom }} - <js-bottom-placeholder token="{{ placeholder_token|raw }}"> + <js-bottom-placeholder token="{{ placeholder_token }}"> </body> </html> diff --git a/core/themes/classy/templates/layout/html.html.twig b/core/themes/classy/templates/layout/html.html.twig index 5bd83ee31f43..241511a8d63e 100644 --- a/core/themes/classy/templates/layout/html.html.twig +++ b/core/themes/classy/templates/layout/html.html.twig @@ -34,10 +34,10 @@ <!DOCTYPE html> <html{{ html_attributes }}> <head> - <head-placeholder token="{{ placeholder_token|raw }}"> + <head-placeholder token="{{ placeholder_token }}"> <title>{{ head_title|safe_join(' | ') }}</title> - <css-placeholder token="{{ placeholder_token|raw }}"> - <js-placeholder token="{{ placeholder_token|raw }}"> + <css-placeholder token="{{ placeholder_token }}"> + <js-placeholder token="{{ placeholder_token }}"> </head> <body{{ attributes.addClass(body_classes) }}> <a href="#main-content" class="visually-hidden focusable skip-link"> @@ -46,6 +46,6 @@ {{ page_top }} {{ page }} {{ page_bottom }} - <js-bottom-placeholder token="{{ placeholder_token|raw }}"> + <js-bottom-placeholder token="{{ placeholder_token }}"> </body> </html> -- GitLab