diff --git a/core/lib/Drupal/Core/Render/Element/StatusMessages.php b/core/lib/Drupal/Core/Render/Element/StatusMessages.php
index bb1cef0d08..c4220736bc 100644
--- a/core/lib/Drupal/Core/Render/Element/StatusMessages.php
+++ b/core/lib/Drupal/Core/Render/Element/StatusMessages.php
@@ -90,7 +90,7 @@ public static function renderMessages($type) {
else {
// Provide empty div for Javascript to add messages to.
$render = [
- '#markup' => '
',
+ '#markup' => '',
];
}
diff --git a/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php b/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php
index 1f1768ab46..4f7999e1af 100644
--- a/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php
+++ b/core/modules/big_pipe/src/Tests/BigPipePlaceholderTestCases.php
@@ -90,7 +90,7 @@ public static function cases(ContainerInterface $container = NULL, AccountInterf
'command' => 'insert',
'method' => 'replaceWith',
'selector' => '[data-big-pipe-placeholder-id="callback=Drupal%5CCore%5CRender%5CElement%5CStatusMessages%3A%3ArenderMessages&args%5B0%5D&token=_HAdUpwWmet0TOTe2PSiJuMntExoshbm1kh2wQzzzAA"]',
- 'data' => "\n" . '' . "\n" . '
' . "\n" . '
Status message
' . "\n" . ' Hello from BigPipe!' . "\n" . ' ' . "\n" . '
' . "\n",
+ 'data' => '' . "\n" . '
' . "\n" . '
Status message
' . "\n" . ' Hello from BigPipe!' . "\n" . ' ' . "\n" . '
' . "\n",
'settings' => NULL,
],
];