You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@minren118 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
TITLE
[Bug] When using the getDataURL method to get svg text, when there are < symbols, it is not escaped and destroys the xml document structure
BODY
Version
5.3
Link to Minimal Reproduction
No response
Steps to Reproduce
When using getDataURL to output the svg text of the chart, it is found that ECharts does not escape and re-output special symbols such as <, resulting in an error in the exported svg text.
When the browser opens, it will show such a logo, and the actual content cannot be rendered.
The actual content is as follows: the XML document structure is broken by <.
When escaped, it is normal.
<text dominant-baseline="central" text-anchor="start" style="font: normal normal 14px Microsoft YaHei" x="30" y="7.5" transform="translate(85 520)" fill="#333"><5
Current Behavior
The exported string is not escaped.
Expected Behavior
If you need to include special characters in the exported string, escape it before output.
Version
5.3
Link to Minimal Reproduction
No response
Steps to Reproduce
当使用getDataURL对图表进行svg文本输出时,发现ECharts没有对特殊的符号如<进行转义再输出,导致导出的svg文本出错。
浏览器打开会显示这样的标识,实际的内容没法渲染出来。
实际内容如下:因<破坏了xml文档结构。
当转义后,就正常了。
<5
Current Behavior
未对导出的字符串进行转义。
Expected Behavior
需要对导出的字符串包含特殊字符时,转义后再输出。
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: