1
0
mirror of https://gitlab.com/MisterBiggs/brain-quartz.git synced 2025-07-23 14:51:33 +00:00

fix(rss): add cdata to escape html content for rss feed (#2046)

* add cdata to escape html content

* fix: remove redundant CDATA
This commit is contained in:
Abhi
2025-07-14 13:30:38 +05:30
committed by GitHub
parent acfaa47225
commit 059848f8b0

View File

@@ -58,7 +58,7 @@ function generateRSSFeed(cfg: GlobalConfiguration, idx: ContentIndexMap, limit?:
<title>${escapeHTML(content.title)}</title> <title>${escapeHTML(content.title)}</title>
<link>https://${joinSegments(base, encodeURI(slug))}</link> <link>https://${joinSegments(base, encodeURI(slug))}</link>
<guid>https://${joinSegments(base, encodeURI(slug))}</guid> <guid>https://${joinSegments(base, encodeURI(slug))}</guid>
<description>${content.richContent ?? content.description}</description> <description><![CDATA[ ${content.richContent ?? content.description} ]]></description>
<pubDate>${content.date?.toUTCString()}</pubDate> <pubDate>${content.date?.toUTCString()}</pubDate>
</item>` </item>`