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

fix substitution order for & and < #4

Merged
merged 1 commit into from Jul 27, 2017
Merged

Conversation

schplurtz
Copy link
Contributor

Hi,
When substituting <, > and & with their corresponding xmlentities &lt;, &gt; and &amp;, order matters. The & substitution must come first, otherwise it will replace the & from &lt; or &gt; and we end up with &amp;lt;...

image

This simple patch fixes the replace order.

@dhobsd dhobsd merged commit 2a7f14a into dhobsd:master Jul 27, 2017
@dhobsd
Copy link
Owner

dhobsd commented Jul 27, 2017

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants