From 6039513dab858fceec94c0db4e868994ea76446c Mon Sep 17 00:00:00 2001 From: Mathieu Bruyen Date: Tue, 7 Jun 2022 08:02:13 +0200 Subject: [PATCH] bugfix: escape object name in chart xml --- src/gen-charts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen-charts.ts b/src/gen-charts.ts index 5be20a397..7e871cb4a 100644 --- a/src/gen-charts.ts +++ b/src/gen-charts.ts @@ -1412,7 +1412,7 @@ function makeChartType(chartType: CHART_NAME, data: IOptsChartData[], opts: ICha strXml += ' ' strXml += ' ' strXml += ' Sheet1!$' + getExcelColName(idxColLtr + 1) + '$1' - strXml += ' ' + obj.name + '' + strXml += ' ' + encodeXmlEntities(obj.name) + '' strXml += ' ' strXml += ' '