Skip to content

Commit

Permalink
fix: strip HTML tags from headings
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 28, 2023
1 parent a7940c6 commit 167d5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/search/functions/parse-headings.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{- range .Fragments.HeadingsMap }}
{{- $headings = $headings | append (dict
"anchor" .ID
"title" (.Title | htmlUnescape))
"title" (.Title | plainify))
}}
{{- end }}
{{- return $headings -}}

0 comments on commit 167d5f1

Please sign in to comment.