diff --git a/core/themes/engines/twig/twig.engine b/core/themes/engines/twig/twig.engine index 0897ca3..e0cfcc2 100644 --- a/core/themes/engines/twig/twig.engine +++ b/core/themes/engines/twig/twig.engine @@ -261,12 +261,13 @@ function twig_drupal_escape_filter(\Twig_Environment $env, $string, $strategy = * The pieces to join. * @param string $glue * The delimiter with which to join the string. Defaults to an empty string. + * This value is expected to be safe for output and user provided data should + * never be used as a glue. * * @return \Drupal\Component\Utility\SafeMarkup|string * The imploded string, which is now also marked as safe. */ function twig_drupal_join_filter($value, $glue = '') { - $glue = SafeMarkup::escape($glue); $separator = ''; $output = ''; foreach ($value as $item) {