Skip to content

Commit

Permalink
bugfix: escape object name in chart xml
Browse files Browse the repository at this point in the history
  • Loading branch information
mathbruyen committed Jun 7, 2022
1 parent 47d7854 commit 99ae371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gen-charts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar
strXml += ' <c:tx>'
strXml += ' <c:strRef>'
strXml += ' <c:f>Sheet1!$' + LETTERS[idxColLtr] + '$1</c:f>'
strXml += ' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>' + obj.name + '</c:v></c:pt></c:strCache>'
strXml += ' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>' + encodeXmlEntities(obj.name) + '</c:v></c:pt></c:strCache>'
strXml += ' </c:strRef>'
strXml += ' </c:tx>'

Expand Down

0 comments on commit 99ae371

Please # to comment.