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

Escape apostrophes #28

Merged
merged 2 commits into from
Mar 30, 2017
Merged

Conversation

tfausak
Copy link
Contributor

@tfausak tfausak commented Mar 29, 2017

There are only 5 XML entities to escape: http://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents/1091953#1091953

This package escapes 4 of them but it doesn't escape apostrophes ('). This PR escapes apostrophes.

I went with ' as the escape sequence. The alternatives are ' or '. The former is not valid HTML 4 (see ruby/ruby@538bd3c) and the latter is apparently not as widely supported (see ruby/ruby@bbb6b5e#commitcomment-1800099).

@JustusAdam
Copy link
Owner

All right thank you very much. I'll release a patch version with this fix.

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.

None yet

2 participants