Skip to content

Commit

Permalink
fix: title cdata issue
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-murphy committed Jul 2, 2024
1 parent 997e4dd commit 4046201
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions functions/src/utils/makeRss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export function makeRss(feed: PodcastChannel, episodes: PodcastEpisode[]) {

function makeChannel(channel: PodcastChannel, items: string) {
return `<channel>
<title>${channel.title}</title>
<title><![CDATA[${channel.title}]]></title>
<description><![CDATA[${channel.description}]]></description>
<link>${channel.contact.site}</link>
<link><![CDATA[${channel.contact.site}]]></link>
<language>${channel.metadata.language}</language>
<itunes:author>${channel.contact.author}</itunes:author>
<itunes:summary><![CDATA[${channel.description}]]></itunes:summary>
Expand All @@ -38,9 +38,9 @@ function makeChannel(channel: PodcastChannel, items: string) {
</itunes:owner>
<itunes:explicit>${channel.metadata.explicit}</itunes:explicit>
<itunes:type>${channel.metadata.type}</itunes:type>
<itunes:new-feed-url>${channel.feedUrl}</itunes:new-feed-url>
<itunes:new-feed-url><![CDATA[${channel.feedUrl}]]></itunes:new-feed-url>
<atom:link href="${channel.feedUrl}" rel="self" type="application/rss+xml"/>
<docs>${channel.contact.site}</docs>
<docs><![CDATA[${channel.contact.site}]]></docs>
<podcast:locked>${channel.metadata.locked}</podcast:locked>
${items}
</channel>`;
Expand Down

0 comments on commit 4046201

Please sign in to comment.