minren118 opened a new issue, #18192: URL: https://github.com/apache/echarts/issues/18192
### Version 5.3 ### Link to Minimal Reproduction _No response_ ### Steps to Reproduce 当使用getDataURL对图表进行svg文本输出时,发现ECharts没有对特殊的符号如<进行转义再输出,导致导出的svg文本出错。 浏览器打开会显示这样的标识,实际的内容没法渲染出来。  实际内容如下:因<破坏了xml文档结构。  当转义后,就正常了。 <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</text> ### Current Behavior 未对导出的字符串进行转义。 ### Expected Behavior 需要对导出的字符串包含特殊字符时,转义后再输出。 ### Environment ```markdown - OS: - Browser: - Framework: ``` ### Any additional comments? _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
