Skip to content

Remove HTML entity decoding from convertToSVG #804

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

Merged
merged 3 commits into from
Aug 2, 2016

Conversation

scjody
Copy link
Contributor

@scjody scjody commented Aug 1, 2016

Remove HTML entity decoding from convertToSVG - this is unnecessary and imposes a performance hit on long strings.

This is unnecessary and imposes a performance hit on long strings.
@scjody
Copy link
Contributor Author

scjody commented Aug 1, 2016

This breaks some existing behaviour. Will investigate.

@scjody
Copy link
Contributor Author

scjody commented Aug 2, 2016

It turns out we depended on entity decoding in parts of plotly.js itself, and in one mock plot, but those were easy to fix. Also some of the XSS tests needed to be modified. I have manually verified that we did not break any existing XSS protection.

@etpinard
Copy link
Contributor

etpinard commented Aug 2, 2016

Looks good 💃 Thank you very much!

@scjody scjody merged commit 53d054e into master Aug 2, 2016
@scjody scjody deleted the entity-decode-performance branch August 2, 2016 16:16
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.

2 participants