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

Don't escape quotes ('/") in text nodes and attributes. #64

Merged
merged 1 commit into from
Aug 15, 2016

Conversation

Ede123
Copy link
Member

@Ede123 Ede123 commented Aug 15, 2016

  • In text nodes quotes are fine
  • In attributes quotes are fine if used reciprocally.

Escaping in the latter case often causes issues, e.g. with quoted font names (#21) or inline CSS styles (#56), while it probably does not gain anything (if quotes are wrongly used in attribute names the XML is most likely invalid to start with)

- In text nodes quotes are fine
- In attributes quotes are fine if used reciprocally.

Escaping in the latter case often causes issues, e.g. with quoted font names (scour-project#21) or inline CSS styles (scour-project#56), while it probably does not gain anything (if quotes are wrongly used in attribute names the XML is most likely invalid to start with)
@Ede123 Ede123 merged commit 57f93ef into scour-project:master Aug 15, 2016
@Ede123 Ede123 deleted the quotes branch August 15, 2016 22:17
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.

1 participant