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

Added handling for xml escape characters in string values #1

Closed
wants to merge 1 commit into from

Conversation

chrismalek
Copy link

I was using this library to convert JSON to XML. I was getting some JSON back from an API that had & in the values which chokes XML processors as & needs to be escaped.

I added some changes to replace some of those strings that needs to be replaced for valid XML.

@chrismalek
Copy link
Author

Oops. I think there may be an issue here. Please ignore this PR for now.

@chrismalek chrismalek closed this Mar 18, 2016
@clbanning
Copy link
Owner

With latest update: XMLEscapeChars(true) will force escaping of invalid characters in attribute and element values.

@chrismalek
Copy link
Author

let me me check that out..ignore my other pull request. I will cancel that.

@chrismalek chrismalek mentioned this pull request Mar 18, 2016
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

Successfully merging this pull request may close these issues.

2 participants