mirror of
https://github.com/imfing/hextra.git
synced 2025-08-23 10:07:11 -04:00
fix(search): unescape title (#741)
This commit is contained in:

committed by
GitHub

parent
532cbcce10
commit
b6864a0c19
@@ -20,7 +20,7 @@ The scratchpad must be initialized with empty slices before calling this functio
|
||||
{{- $.scratch.Add "keys" (slice $key) -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $title := (printf "<h%d>%s" $heading.Level $heading.Title) -}}
|
||||
{{- $title := (printf "<h%d>%s" $heading.Level $heading.Title) | htmlUnescape -}}
|
||||
{{- $.scratch.Add "titles" (slice $title) -}}
|
||||
|
||||
{{- partial "utils/extract-headings.html" (dict
|
||||
|
Reference in New Issue
Block a user