Skip to content

Commit a8b9281

Browse files
committed
Update feed episode description to use CDATA
1 parent 54a4b09 commit a8b9281

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/models/FeedEpisode.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ class FeedEpisode extends Model {
308308
const customElements = [
309309
{ 'itunes:author': this.author || null },
310310
{ 'itunes:duration': Math.round(Number(this.duration)) },
311-
{ 'itunes:summary': this.description || null },
312311
{
313312
'itunes:explicit': !!this.explicit
314313
},
@@ -319,6 +318,9 @@ class FeedEpisode extends Model {
319318
// Remove empty custom elements
320319
return Object.values(element)[0] !== null
321320
})
321+
if (this.description) {
322+
customElements.push({ 'itunes:summary': { _cdata: this.description } })
323+
}
322324

323325
return {
324326
title: this.title,

0 commit comments

Comments
 (0)