dylang / node-rss

RSS feed generator for Node.
https://npmjs.org/package/rss
MIT License
999 stars 133 forks source link

Feed doesn’t validate in itunes - itunes:category should have a self closing tag #95

Open mjgs opened 3 years ago

mjgs commented 3 years ago

Thanks for this library, it’s great.

However, according to the Apple docs, for a feed to validate on itunes podcasts the itunes:category tag should be self closing:

But node-rss produces:

So the feed doesn’t validate on itunes. Is there a way to specify the feed options so as to get the self closing tag version? Updated - Here is the config I am using: {'itunes:category': [ {_attr: { text: ‘History' }} ]}