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

NSString: Use SecurityElement.Escape to escape XML characters #80

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

qmfrederik
Copy link
Contributor

We've hit a scenario where a GNUstep-based application has a hard time processing a property list with CDATA elements in it. It works well if you XML-encode characters instead, and the Apple implementation of the XML property list format appears to be just fine with it, too.

To maintain compatibility with this application, we find it works better if we XML-encode any characters. So a>b -> a&gt;b instead of <![CDATA[a>b]]>.

This PR implements just that.

@claunia claunia merged commit 504aaab into claunia:master Jan 28, 2025
3 checks passed
@qmfrederik qmfrederik deleted the fixes/string-escaping branch January 28, 2025 09:29
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