fix: use safeHTML for description in metadata (#334)
This commit is contained in:
parent
cd9ab9e48e
commit
87fdde4808
4 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
|||
<meta property="og:site_name" content="{{ . }}" />
|
||||
{{- end }}
|
||||
{{- with partial "utils/description" . }}
|
||||
<meta property="og:description" content="{{ trim (. | plainify) "\n" }}" />
|
||||
<meta property="og:description" content="{{ trim (. | plainify) "\n" | safeHTML }}" />
|
||||
{{- end }}
|
||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue