diff --git a/core/modules/color/color.module b/core/modules/color/color.module
index f5622c8..ba0f0e6 100644
--- a/core/modules/color/color.module
+++ b/core/modules/color/color.module
@@ -284,7 +284,11 @@ function template_preprocess_color_scheme_form(&$variables) {
 
   // Attempt to load preview HTML if the theme provides it.
   $preview_html_path = \Drupal::root() . '/' . (isset($info['preview_html']) ? drupal_get_path('theme', $theme) . '/' . $info['preview_html'] : drupal_get_path('module', 'color') . '/preview.html');
-  $variables['html_preview'] = SafeMarkup::set(file_get_contents($preview_html_path));
+
+  $variables['html_preview'] = array (
+    '#type' => 'inline_template',
+    '#template' => file_get_contents($preview_html_path),
+  );
 }
 
 /**
