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

Html entities containing digits are not unescaped correctly #46

Closed
clementdenis opened this issue Nov 15, 2010 · 2 comments
Closed

Html entities containing digits are not unescaped correctly #46

clementdenis opened this issue Nov 15, 2010 · 2 comments

Comments

@clementdenis
Copy link

Some html entities (such as sup1, sup2) are not unescaped correctly by Entities.unescape because they contain digits.

The problem is the pattern Entities.unescapePattern. I changed it to '&(#(x|X)?([0-9a-fA-F]+)|[0-9a-zA-Z]+);?', and it worked fine for me. But there might be side effects ...

You can see my changes here : clementdenis@d65387c

@jhy
Copy link
Owner

jhy commented Nov 16, 2010

Thanks for finding this.

@jhy
Copy link
Owner

jhy commented Nov 16, 2010

Fixed support for HTML entities with numbers in name (e.g. &frac34, &sup1)

Closed by 6d48121

michael-simons pushed a commit to michael-simons/jsoup that referenced this issue Jul 12, 2011
zazi pushed a commit to dswarm/jsoup that referenced this issue Oct 15, 2015
This issue was closed.
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

No branches or pull requests

2 participants