diff --git a/core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php index ef0123e08c..4f8dbf90c6 100644 --- a/core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php @@ -124,7 +124,7 @@ public function onException(ExceptionEvent $event) { $content_type = $event->getRequest()->getRequestFormat() == 'html' ? 'text/html' : 'text/plain'; $content = $this->t('The website encountered an unexpected error. Please try again later.'); - $content .= $message ? '

' . $message : ''; + $content .= $message ? '

' . $message : ''; $response = new Response($content, 500, ['Content-Type' => $content_type]); if ($exception instanceof HttpExceptionInterface) { diff --git a/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php b/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php index f43451ec63..0156184ef9 100644 --- a/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php +++ b/core/modules/content_moderation/src/Form/ContentModerationConfigureForm.php @@ -104,7 +104,7 @@ public function buildConfigurationForm(array $form, FormStateInterface $form_sta $form['entity_types_container']['entity_types'][$entity_type->id()] = [ 'type' => [ '#type' => 'inline_template', - '#template' => '{{ label }}
{{ selected_bundles }}', + '#template' => '{{ label }}
{{ selected_bundles }}', '#context' => [ 'label' => $this->t('@bundle types', ['@bundle' => $entity_type->getLabel()]), 'entity_type_id' => $entity_type->id(),