diff --git a/core/modules/views_ui/src/ViewUI.php b/core/modules/views_ui/src/ViewUI.php index 6532689..0746df2 100644 --- a/core/modules/views_ui/src/ViewUI.php +++ b/core/modules/views_ui/src/ViewUI.php @@ -700,7 +700,7 @@ public function renderPreview($display_id, $args = array()) { '#template' => "{% trans 'Other queries' %}", ), ), - SafeMarkup::set('
' . $queries . '
'), + SafeMarkup::format('
@queries>
'), [@queries => $queries], ); } } @@ -722,7 +722,7 @@ public function renderPreview($display_id, $args = array()) { else { $path = t('This display has no path.'); } - $rows['query'][] = array(SafeMarkup::set('' . t('Path') . ''), $path); + $rows['query'][] = array(SafeMarkup::format('@path'), ['@path' => t('Path')], $path); } if ($show_stats) { @@ -762,10 +762,10 @@ public function renderPreview($display_id, $args = array()) { // No query was run. Display that information in place of either the // query or the performance statistics, whichever comes first. if ($combined || ($show_location === 'above')) { - $rows['query'] = array(array(SafeMarkup::set('' . t('Query') . ''), t('No query was run'))); + $rows['query'] = array(array(SafeMarkup::format('@query', ['@query' => t('Query')]), t('No query was run'))); } else { - $rows['statistics'] = array(array(SafeMarkup::set('' . t('Query') . ''), t('No query was run'))); + $rows['statistics'] = array(array(SafeMarkup::format('@query', ['@query' => t('Query')]), t('No query was run'))); } } }