only in patch2: unchanged: --- a/core/modules/rest/src/Plugin/views/display/RestExport.php +++ b/core/modules/rest/src/Plugin/views/display/RestExport.php @@ -284,7 +284,7 @@ public function execute() { $header = []; $header['Content-type'] = $this->getMimeType(); - $response = new CacheableResponse($this->renderer->renderRoot($output), 200); + $response = new CacheableResponse($this->renderer->renderRoot(SafeMarkup::set($output)), 200); $cache_metadata = CacheableMetadata::createFromRenderArray($output); $response->addCacheableDependency($cache_metadata);