diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 62f2d6f..5db8317 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1302,7 +1302,9 @@ function template_preprocess_html(&$variables) { ]; $variables['placeholder_token'] = Crypt::randomBytesBase64(55); foreach ($types as $type => $placeholder_name) { - $placeholder = '<' . $placeholder_name . '-placeholder token="' . $variables['placeholder_token'] . '">'; + // Placeholder will never be printed for the browser so it should not be + // escaped. + $placeholder = Markup::create('<' . $placeholder_name . '-placeholder token="' . $variables['placeholder_token'] . '">'); $variables['#attached']['html_response_attachment_placeholders'][$type] = $placeholder; } } diff --git a/core/modules/system/templates/html.html.twig b/core/modules/system/templates/html.html.twig index 39702c2..ad582d9 100644 --- a/core/modules/system/templates/html.html.twig +++ b/core/modules/system/templates/html.html.twig @@ -28,10 +28,10 @@
-