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

XmlOutputFormat does not escape all required symbols in case of attribte/text #109

Closed
snuyanzin opened this issue Aug 15, 2018 · 1 comment

Comments

@snuyanzin
Copy link
Collaborator

Currently it escapes only " and < while & also must be escaped in case of attribute/text based on [1].
At the same time both " and ' are not required to be encoded for case of element text while for xml attribute one of them should be depending on attribute quote type.
Also > must be escaped if there is a sequence ]]> inside text or attribute value which is not a part of CDATA

[1] https://www.w3.org/TR/2008/REC-xml-20081126/#syntax

@julianhyde
Copy link
Owner

Fixed in 2cee6c7, PR #110. Thanks @snuyanzin!

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

2 participants