From 573e673efae17255fc46ae44670de9ce51faf9d8 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 2 May 2021 11:29:31 +0530 Subject: [PATCH] Use `content:encoded` in Rss feeds when using ShowFullTextinRSS --- layouts/_default/rss.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 8070d9da..eca41b7e 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -11,7 +11,7 @@ {{- $pages = $pages | first $limit -}} {{- end -}} {{- printf "" | safeHTML }} - + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }} {{ .Permalink }} @@ -41,7 +41,7 @@ {{ .Permalink }} {{ with .Description | html }}{{ . }}{{ else }}{{ .Summary | html }}{{ end -}} {{- if .Site.Params.ShowFullTextinRSS }} - {{ .Content | html }} + {{ (printf "" .Content) | safeHTML }} {{- end }} {{- end }}