Skip to content

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

Development

Successfully merging this pull request may close these issues.

[Bug]The name of the series in the option contains label characters such as "<",">", which causes the generated svg to render incorrectly

3 participants