From b6864a0c1977c58c75e3dc746b35e09a0877c5b7 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Tue, 12 Aug 2025 14:02:35 +0200 Subject: [PATCH] fix(search): unescape title (#741) --- layouts/_partials/utils/extract-headings.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_partials/utils/extract-headings.html b/layouts/_partials/utils/extract-headings.html index 7611923..976d76e 100644 --- a/layouts/_partials/utils/extract-headings.html +++ b/layouts/_partials/utils/extract-headings.html @@ -20,7 +20,7 @@ The scratchpad must be initialized with empty slices before calling this functio {{- $.scratch.Add "keys" (slice $key) -}} {{- end -}} - {{- $title := (printf "%s" $heading.Level $heading.Title) -}} + {{- $title := (printf "%s" $heading.Level $heading.Title) | htmlUnescape -}} {{- $.scratch.Add "titles" (slice $title) -}} {{- partial "utils/extract-headings.html" (dict