aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.atom.xml
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicksphere.ch>2022-04-30 00:00:00 +0000
committerNicholas Johnson <nick@nicksphere.ch>2022-04-30 00:00:00 +0000
commit29cd52d7e7376464ec49a9d7ceacd0b4ef97511b51ee222f5a31441db7594f12 (patch)
tree0e80309254a34286772dea090f10e88748b68873f890e1d6f0659d3046b3c354 /layouts/index.atom.xml
parenta0515d10ebf17708495d1cd209bf5303427b4d5e6d1a7c1135e2083739c14c31 (diff)
Escape HTML content in Atom feed
Diffstat (limited to 'layouts/index.atom.xml')
-rw-r--r--layouts/index.atom.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml
index ecda6f8..8575042 100644
--- a/layouts/index.atom.xml
+++ b/layouts/index.atom.xml
@@ -1,4 +1,4 @@
-{{ printf "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | safeHTML }}
+{{ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" | safeHTML }}
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ .Permalink }}</id>
<title>{{ .Site.Title }}</title>
@@ -17,6 +17,6 @@
<title type="html">{{ .Title }}></title>
<updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
<link href="{{ .Permalink }}">
- <content type="html">{{ .Content }}</content>
+ <content type="html">{{ .Content | html }}</content>
</entry>{{ end }}
</feed>