diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php b/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php
index cba3810..1fd7a4a 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/display/Feed.php
@@ -7,6 +7,7 @@
 
 namespace Drupal\views\Plugin\views\display;
 
+use Drupal\Component\Utility\String;
 use Drupal\views\ViewExecutable;
 use Symfony\Component\HttpFoundation\Response;
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -88,11 +89,17 @@ public function execute() {
    * Overrides \Drupal\views\Plugin\views\display\PathPluginBase::preview().
    */
   public function preview() {
+    $output = $this->view->render();
+
     if (!empty($this->view->live_preview)) {
-      return '<pre>' . check_plain($this->view->render()) . '</pre>';
+      $output = array(
+        '#prefix' => '<pre>',
+        '#markup' => String::checkPlain($output),
+        '#suffix' => '</pre>',
+      );
     }
 
-    return $this->view->render();
+    return $output;
   }
 
   /**
