Skip to content

Commit 059848f

Browse files
authored
fix(rss): add cdata to escape html content for rss feed (#2046)
* add cdata to escape html content * fix: remove redundant CDATA
1 parent acfaa47 commit 059848f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quartz/plugins/emitters/contentIndex.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function generateRSSFeed(cfg: GlobalConfiguration, idx: ContentIndexMap, limit?:
5858
<title>${escapeHTML(content.title)}</title>
5959
<link>https://${joinSegments(base, encodeURI(slug))}</link>
6060
<guid>https://${joinSegments(base, encodeURI(slug))}</guid>
61-
<description>${content.richContent ?? content.description}</description>
61+
<description><![CDATA[ ${content.richContent ?? content.description} ]]></description>
6262
<pubDate>${content.date?.toUTCString()}</pubDate>
6363
</item>`
6464

0 commit comments

Comments
 (0)