diff --git a/core/lib/Drupal/Core/Template/TwigNodeTrans.php b/core/lib/Drupal/Core/Template/TwigNodeTrans.php index 6bd4b8a..50a04e4 100644 --- a/core/lib/Drupal/Core/Template/TwigNodeTrans.php +++ b/core/lib/Drupal/Core/Template/TwigNodeTrans.php @@ -67,10 +67,9 @@ public function compile(\Twig_Compiler $compiler) { // leave as an empty array. $compiler->raw(', array('); foreach ($tokens as $token) { - $compiler->string($token->getAttribute('placeholder'))->raw(' => ')->subcompile($token)->raw(', '); + $compiler->string($token->getAttribute('placeholder'))->raw(' => $this->env->getExtension(\'drupal_core\')->renderVar($this->env, ')->subcompile($token)->raw(', "html", null, true), '); } $compiler->raw(')'); - // Write any options passed. if (!empty($options)) { $compiler->raw(', ')->subcompile($options);