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>
<title>${escapeHTML(cfg.pageTitle)}</title>
<link>${root}</link>
<description>${!!limit ? `Last ${limit} notes` : "Recent notes"} on ${
cfg.pageTitle
}</description>
<description>${!!limit ? `Last ${limit} notes` : "Recent notes"} on ${escapeHTML(
cfg.pageTitle,
)}</description>
<generator>Quartz -- quartz.jzhao.xyz</generator>
${items}
</channel>