Declare content as a safeHTML string.

This commit is contained in:
Jan Brennenstuhl 2025-04-09 22:29:03 +02:00
parent 72615b6d49
commit 1a8edfc0c8
No known key found for this signature in database
GPG key ID: BCA7CCED080D38FF

View file

@ -37,8 +37,8 @@
{{- if .Content }} {{- if .Content }}
<div class="post-content"> <div class="post-content">
{{- if not (.Param "disableAnchoredHeadings") }} {{- if not (.Param "disableAnchoredHeadings") }}
{{- partial "anchored_headings.html" .Content -}} {{- partial "anchored_headings.html" .Content | safe.HTML -}}
{{- else }}{{ .Content }}{{ end }} {{- else }}{{ .Content | safe.HTML }}{{ end }}
</div> </div>
{{- end }} {{- end }}