Skip to content

Commit 37b99bc

Browse files
committed
Remove disallowed XML characters in RSS feeds
1 parent 95829e0 commit 37b99bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/_default/rss.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>{{ with site.Params.author.email }}
2525
<author>{{ . }}{{ with site.Params.author.name }} ({{ . }}){{ end }}</author>{{ end }}
2626
<guid>{{ .Permalink }}</guid>
27-
<description>{{ html .Content }}</description>
27+
<description>{{ transform.XMLEscape .Content | safeHTML }}</description>
2828
</item>{{ end }}
2929
</channel>
3030
</rss>

0 commit comments

Comments
 (0)