diff --git a/core/lib/Drupal/Component/Utility/Html.php b/core/lib/Drupal/Component/Utility/Html.php
index 447142d66a..a008d725af 100644
--- a/core/lib/Drupal/Component/Utility/Html.php
+++ b/core/lib/Drupal/Component/Utility/Html.php
@@ -325,7 +325,7 @@ public static function serialize(\DOMDocument $document) {
 
     // Normalize all newlines.
     $html = str_replace(["\r\n", "\r"], "\n", $html);
-
+    $html = html_entity_decode($html, ENT_QUOTES, 'UTF-8');
     return $html;
   }
 
