only in patch2: unchanged: --- a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php +++ b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php @@ -8,6 +8,7 @@ namespace Drupal\Tests\Core\Render; use Drupal\Component\Utility\Html; +use Drupal\Component\Utility\SafeMarkup; use Drupal\Core\Render\Element; use Drupal\Core\Cache\Cache; @@ -82,7 +83,7 @@ public function providerPlaceholders() { // @todo, see docblock ]; $base_element_b = [ - '#markup' => $generate_placeholder_markup(), + '#markup' => SafeMarkup::set($generate_placeholder_markup()), '#attached' => [ 'drupalSettings' => [ 'foo' => 'bar', @@ -151,7 +152,7 @@ public function providerPlaceholders() { // - manually created // - cacheable $x = $base_element_b; - $x['#markup'] = $generate_placeholder_markup($keys); + $x['#markup'] = SafeMarkup::set($generate_placeholder_markup($keys)); $x['#attached']['placeholders'] = [ $generate_placeholder_markup($keys) => [ '#lazy_builder' => ['Drupal\Tests\Core\Render\PlaceholdersTest::callback', $args],