Skip to content

fix(svg): encode HTML when converting vnode to string.#935

Merged
plainheart merged 1 commit into
masterfrom
svg-encode-html
Jul 20, 2022
Merged

fix(svg): encode HTML when converting vnode to string.#935
plainheart merged 1 commit into
masterfrom
svg-encode-html

Conversation

@plainheart
Copy link
Copy Markdown
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

2 participants