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(svg): encode HTML when converting vnode to string. #935

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

plainheart
Copy link
Collaborator

Fix apache/echarts#17399

Since we don't encode the SVG string, the generated SVG may be broken if it contains special characters.

And the encodeHTML function was moved from echarts to zrender in this PR.

…arts#17399.

- move the `encodeHTML` function from `echarts` to `zrender`.
@plainheart plainheart merged commit 6b32470 into master Jul 20, 2022
@plainheart plainheart deleted the svg-encode-html branch July 20, 2022 06:08
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