Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow bypassing CDATA #166

Open
jahirfiquitiva opened this issue Nov 17, 2021 · 0 comments
Open

Allow bypassing CDATA #166

jahirfiquitiva opened this issue Nov 17, 2021 · 0 comments

Comments

@jahirfiquitiva
Copy link

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...

item.description = { _cdata: entry.description };

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant