feed
feed copied to clipboard
Allow bypassing CDATA
Hello
I noticed, you put the items description inside CDATA... would it be possible for you to allow us bypass it and let us be in charge of escaping this field? or maybe even any CDATA field?
This is the line where you do so... https://github.com/jpmonette/feed/blob/fd77835d23990670975092c15009c75432e258ac/src/rss2.ts#L146
maybe it could be a field like escapedDescription
and then in your code, it could be something like:
item.description = entry.escapedDescription ? entry.escapedDescription : { _cdata: entry.description };
Thanks in advance!