maxnowack / node-podcast

Podcast feed generator for Node.
MIT License
157 stars 39 forks source link

Disable escaping for non-ascii characters? #54

Closed srsudar closed 2 years ago

srsudar commented 2 years ago

Is there a way to disable XML character escaping? I'm having some trouble with the escaping accepted by different podcast players.

For example, if I pass Hey José to the Podcast object as a title, that is rendered in the feed as:

<title><![CDATA[Hey Jos&#233;]]></title>

That then shows up in Stitcher with a title of Hey Jos&#233;. This seems like an error on their part, but I'd like to fix it if possible.

I found this podcast on Stitcher that seems to show correct characters:

https://www.stitcher.com/show/historias-de-jose-c-ficcao-ou-fato

Their feed is hosted on Anchor (feed link), and the title shows as:

<title><![CDATA[Histórias de José C. - Ficção ou Fato?]]></title>

I think that since we're doing UTF-8 encoding, this is expected to work, so it should be ok?

Poking around the library, though, I'm not seeing a way to disable escaping. Is it possible somehow?

srsudar commented 2 years ago

Whoops, I think this was happening at a different level than I expected. Not the library's doing. Sorry!