diff --git a/html/core/lib/Drupal/Core/Utility/Token.php b/html/core/lib/Drupal/Core/Utility/Token.php
index 8d98232..de89856 100644
--- a/html/core/lib/Drupal/Core/Utility/Token.php
+++ b/html/core/lib/Drupal/Core/Utility/Token.php
@@ -17,6 +17,7 @@
 use Drupal\Core\Language\LanguageManagerInterface;
 use Drupal\Core\Render\AttachmentsInterface;
 use Drupal\Core\Render\BubbleableMetadata;
+use Drupal\Core\Render\Markup;
 use Drupal\Core\Render\RendererInterface;
 
 /**
@@ -226,7 +227,7 @@ public function replace($text, array $data = array(), array $options = array(),
       $this->renderer->render($build);
     }
 
-    return str_replace($tokens, $values, $text);
+    return Markup::create(str_replace($tokens, $values, $text));
   }
 
   /**
