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 }}
<div class="post-content">
{{- if not (.Param "disableAnchoredHeadings") }}
{{- partial "anchored_headings.html" .Content -}}
{{- else }}{{ .Content }}{{ end }}
{{- partial "anchored_headings.html" .Content | safe.HTML -}}
{{- else }}{{ .Content | safe.HTML }}{{ end }}
</div>
{{- end }}