diff --git a/core/lib/Drupal/Component/Utility/Html.php b/core/lib/Drupal/Component/Utility/Html.php index 186a902..9471dca 100644 --- a/core/lib/Drupal/Component/Utility/Html.php +++ b/core/lib/Drupal/Component/Utility/Html.php @@ -280,12 +280,6 @@ public static function serialize(\DOMDocument $document) { $body_node = $document->getElementsByTagName('body')->item(0); $html = ''; - foreach ($body_node->getElementsByTagName('script') as $node) { - static::escapeCdataElement($node); - } - foreach ($body_node->getElementsByTagName('style') as $node) { - static::escapeCdataElement($node, '/*', '*/'); - } foreach ($body_node->childNodes as $node) { $html .= $document->saveXML($node); } @@ -293,26 +287,6 @@ public static function serialize(\DOMDocument $document) { } /** - * Adds comments around a element. (Note that passing * any non-empty value here will add the