susiwen8 commented on a change in pull request #12947:
URL:
https://github.com/apache/incubator-echarts/pull/12947#discussion_r458136357
##########
File path: src/component/marker/MarkerModel.ts
##########
@@ -206,19 +203,16 @@ abstract class MarkerModel<Opts extends MarkerOption =
MarkerOption> extends Com
const value = this.getRawValue(dataIndex);
const formattedValue = zrUtil.isArray(value)
? zrUtil.map(value, addCommas).join(', ') : addCommas(value as
number);
- const name = data.getName(dataIndex);
+ const name = encodeHTML(data.getName(dataIndex));
Review comment:
I have added `dontEncodeHtml` to `true`, so `name` would be encoded one
time.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]