diff --git a/core/modules/rest/src/Plugin/views/display/RestExport.php b/core/modules/rest/src/Plugin/views/display/RestExport.php index 069951c..eefdf39 100644 --- a/core/modules/rest/src/Plugin/views/display/RestExport.php +++ b/core/modules/rest/src/Plugin/views/display/RestExport.php @@ -15,6 +15,7 @@ use Drupal\Core\Routing\RouteProviderInterface; use Drupal\Core\State\StateInterface; use Drupal\views\Plugin\views\display\ResponseDisplayPluginInterface; +use Drupal\views\Render\ViewsRenderPipelineSafeString; use Drupal\views\ViewExecutable; use Drupal\views\Plugin\views\display\PathPluginBase; use Symfony\Component\DependencyInjection\ContainerInterface; @@ -311,7 +312,7 @@ public function execute() { public function render() { $build = array(); $build['#markup'] = $this->renderer->executeInRenderContext(new RenderContext(), function() { - return $this->view->style_plugin->render(); + return ViewsRenderPipelineSafeString::create($this->view->style_plugin->render()); }); $this->view->element['#content_type'] = $this->getMimeType();