diff --git a/core/lib/Drupal/Component/Utility/Xss.php b/core/lib/Drupal/Component/Utility/Xss.php index 09d3c6b..a14c53d 100644 --- a/core/lib/Drupal/Component/Utility/Xss.php +++ b/core/lib/Drupal/Component/Utility/Xss.php @@ -132,11 +132,6 @@ public static function filterAdminTwig($string) { // Xss::filterAdmin encodes '>' and '<' to '>' and '<'. Since these // are both valid in Twig, we un-encode those that appear within block // delimiters ('{%' and '%}') before handing it back to Twig for processing. - //$return = preg_replace( - // ['/\{%([\s\S]*?)>([\s\S]*?)%\}/', '/\{%([\s\S]*?)<([\s\S]*?)%\}/x'], - // ['{%$1>$2%}', '{%$1<$2%}'], - // $return - //); $return = preg_replace([ '/\{% # Opening Twig statement delimiter ([\s\S]*?) # followed by anything (ungreedy match)