diff --git a/themes/finc/templates/layout/layout.phtml b/themes/finc/templates/layout/layout.phtml
index de0bf8acf2340c68b232d9517da7324cf24a67d6..4c55debb412ed9e9f47aae13f734eaf1067d33e4 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: