mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-23 02:51:39 +01:00
enforce xml escaping for content
This commit is contained in:
parent
73484a80d7
commit
71871d277c
@ -69,7 +69,7 @@
|
||||
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}</updated>
|
||||
<summary type="html">{{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}}</summary>
|
||||
{{- if site.Params.ShowFullTextinRSS }}
|
||||
<content type="html">{{ .Content | html }}</content>
|
||||
<content type="html">{{ (printf "<![CDATA[%s]]>" .Content) | safeHTML }}</content>
|
||||
{{- end }}
|
||||
</entry>
|
||||
{{- end }}
|
||||
|
Loading…
Reference in New Issue
Block a user