From 29cd52d7e7376464ec49a9d7ceacd0b4ef97511b51ee222f5a31441db7594f12 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Sat, 30 Apr 2022 00:00:00 +0000 Subject: Escape HTML content in Atom feed --- layouts/index.atom.xml | 4 ++-- layouts/index.gemini_atom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'layouts') 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 "" | safeHTML }} +{{ "" | safeHTML }} {{ .Permalink }} {{ .Site.Title }} @@ -17,6 +17,6 @@ {{ .Title }}> {{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }} - {{ .Content }} + {{ .Content | html }} {{ end }} diff --git a/layouts/index.gemini_atom.xml b/layouts/index.gemini_atom.xml index 0510e05..7d9cba9 100644 --- a/layouts/index.gemini_atom.xml +++ b/layouts/index.gemini_atom.xml @@ -1,4 +1,4 @@ -{{ printf "" | safeHTML }} +{{ "" | safeHTML }} {{ replace .Permalink "https://" "gemini://" }} {{ .Site.Title }} -- cgit v1.2.3