From 4286612406be3fdd30cc228c738c7f43d9bb0cb7 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 15 Jan 2024 14:33:26 -0600 Subject: [PATCH] rss: strip ... elements --- layouts/_default/rss.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index e1f9961..e1a96ba 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -43,6 +43,7 @@ {{ .Permalink }} {{- $content := replaceRE "a href=\"(#.*?)\"" (printf "%s%s%s" "a href=\"" .Permalink "$1\"") .Content -}} {{- $content = replaceRE "img src=\"(.*?)\"" (printf "%s%s%s" "img src=\"" .Permalink "$1\"") $content -}} + {{- $content = replaceRE "" "" $content -}} {{ $content | html }} {{ end }}