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

Modify xhtml_unescape to handle hex numeric refs #1432

Merged
merged 1 commit into from Apr 29, 2015

Conversation

szweep
Copy link
Contributor

@szweep szweep commented Apr 24, 2015

While the existing code handles references like properly,
it doesn't handle the valid case where the number is specified
in hex. For example 'foo bar', 'foo bar' and 'foo bar'
should all decode to 'foo bar'. The changes in escape.py check
for the 'x' and decode appropriately. Also added unit tests for
unescaping strings with numeric references.

While the existing code handles references like &tornadoweb#32; properly,
it doesn't handle the valid case where the number is specified
in hex. For example 'foo&tornadoweb#32;bar', 'foo bar' and 'foo bar'
should all decode to 'foo bar'. The changes in escape.py check
for the 'x' and decode appropriately. Also added unit tests for
unescaping strings with numeric references.
bdarnell added a commit that referenced this pull request Apr 29, 2015
Modify xhtml_unescape to handle hex numeric refs
@bdarnell bdarnell merged commit bb77f28 into tornadoweb:master Apr 29, 2015
@szweep szweep deleted the unescape_fix branch October 21, 2015 15:37
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