From b9489d22917126a8993f90f4c9f572fd4fb5071f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mathias=20Maa=C3=9F?= <mathias.maass@uni-leipzig.de>
Date: Tue, 20 Jun 2023 12:18:52 +0200
Subject: [PATCH] refs #22788 [finc] adopt vufind fix for proper page title
 ecaping

---
 themes/finc/templates/layout/layout.phtml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/themes/finc/templates/layout/layout.phtml b/themes/finc/templates/layout/layout.phtml
index de0bf8acf23..4c55debb412 100644
--- a/themes/finc/templates/layout/layout.phtml
+++ b/themes/finc/templates/layout/layout.phtml
@@ -16,6 +16,8 @@
   // Pullrequest 2157 Ticket #20826
   // Format the page title using the translation system:
   $siteConfig = $this->config()->get('config')->Site;
+  // Disabled escaping of title temporarily so that we get it unescaped first:
+  $this->headTitle()->setAutoEscape(false);
   $fullTitle = $this->translate(
     'title_wrapper',
     [
@@ -24,6 +26,8 @@
       '%%titleSeparator%%' => $siteConfig->titleSeparator ?? '::'
     ]
   );
+   // Enable escaping again for proper output:
+  $this->headTitle()->setAutoEscape(true);
   echo $this->headTitle($fullTitle, \Laminas\View\Helper\Placeholder\Container\AbstractContainer::SET);
 
   // Set up OpenSearch link:
-- 
GitLab