From 9b601c27f47485a64174f183559eba1788b81699 Mon Sep 17 00:00:00 2001 From: "Satsuki Akiba (aider)" Date: Wed, 4 Jun 2025 15:28:47 +0900 Subject: [PATCH] fix: wrap channel description in CDATA and escape CDATA terminators in item descriptions --- services/podcast.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/podcast.ts b/services/podcast.ts index 2fd830d..71a326a 100644 --- a/services/podcast.ts +++ b/services/podcast.ts @@ -33,7 +33,7 @@ export async function updatePodcastRSS() { itemsXml += ` <![CDATA[${ep.title}]]> - /g, "]]>").replace(/&/g, "&")}]]> + /g, "]]>").replace(/&/g, "&").replace(/\]\]>/g, "]]>")}]]> ${channelAuthor} ${channelCategories} ${channelLanguage} @@ -89,7 +89,7 @@ export async function updatePodcastRSS() { ${channelTitle} ${channelLink} - ${channelDescription}]]> + ${lastBuildDate} ${itemsXml}