fix: escape ]]> and unescape & in podcast description

This commit is contained in:
2025-06-04 13:41:11 +09:00
parent 2c1ae6b867
commit 0fb2c79bdb

View File

@ -27,7 +27,7 @@ export async function updatePodcastRSS() {
itemsXml += ` itemsXml += `
<item> <item>
<title><![CDATA[${ep.title}]]></title> <title><![CDATA[${ep.title}]]></title>
<description><![CDATA[${ep.title.replace(/\]\]>/g, "]]&gt;")}]]></description> <description><![CDATA[${ep.title.replace(/\]\]>/g, "]]&gt;").replace(/&amp;/g, "&")}]]></description>
<author>${channelAuthor}</author> <author>${channelAuthor}</author>
<category>${channelCategories}</category> <category>${channelCategories}</category>
<language>${channelLanguage}</language> <language>${channelLanguage}</language>