Skip to content

Escape characters when making XML document#68

Merged
kazuhiro4949 merged 2 commits intoyahoojapan:masterfrom
mrotrifork:feature/escape-characters
Nov 23, 2021
Merged

Escape characters when making XML document#68
kazuhiro4949 merged 2 commits intoyahoojapan:masterfrom
mrotrifork:feature/escape-characters

Conversation

@mrotrifork
Copy link
Copy Markdown
Contributor

Issue: Making a xml document which includes characters &, < or >, produces invalid XML, because these characters need to be escaped according to the XML specification.

Fix: Escape these characters in text when traversing the xml elements. Issues can still occur when using these characters inside names and attributes, but they are most common in text.

Ref.: https://www.w3.org/TR/xml/

@kazuhiro4949
Copy link
Copy Markdown
Member

Thanks!

@kazuhiro4949 kazuhiro4949 merged commit d7a1d23 into yahoojapan:master Nov 23, 2021
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