Fix: RSS title escaping (#521)

* Fix title escaping

* npm run format
This commit is contained in:
bfahrenfort 2023-10-01 11:47:22 -05:00 committed by GitHub
parent b38d9322b1
commit 8c1c1c78d7

View File

@ -68,9 +68,9 @@ function generateRSSFeed(cfg: GlobalConfiguration, idx: ContentIndex, limit?: nu
<channel> <channel>
<title>${escapeHTML(cfg.pageTitle)}</title> <title>${escapeHTML(cfg.pageTitle)}</title>
<link>${root}</link> <link>${root}</link>
<description>${!!limit ? `Last ${limit} notes` : "Recent notes"} on ${ <description>${!!limit ? `Last ${limit} notes` : "Recent notes"} on ${escapeHTML(
cfg.pageTitle cfg.pageTitle,
}</description> )}</description>
<generator>Quartz -- quartz.jzhao.xyz</generator> <generator>Quartz -- quartz.jzhao.xyz</generator>
${items} ${items}
</channel> </channel>