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:
parent
acfaa47225
commit
059848f8b0
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ function generateRSSFeed(cfg: GlobalConfiguration, idx: ContentIndexMap, limit?:
|
|||
<title>${escapeHTML(content.title)}</title>
|
||||
<link>https://${joinSegments(base, encodeURI(slug))}</link>
|
||||
<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>
|
||||
</item>`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue