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

Double encoding bug #206

Closed
fractalf opened this issue Jan 9, 2015 · 1 comment
Closed

Double encoding bug #206

fractalf opened this issue Jan 9, 2015 · 1 comment
Assignees

Comments

@fractalf
Copy link

fractalf commented Jan 9, 2015

This fails:

htmlentities('"'); // result: "

Reason:
The object hash_map returned from get_html_translation_table puts " (code 34) before & (code 39) when looping through.

An object won't guarantee any order of it's properties, so hash_map should be an array. Basically a lot of the variables defined in get_html_translation_table should be arrays, not objects

@kukawski kukawski self-assigned this Jan 9, 2015
kukawski pushed a commit that referenced this issue Jan 12, 2015
@kukawski
Copy link
Collaborator

OK, it should work now.

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