mik-laj commented on a change in pull request #5952: [AIRFLOW-5348] Escape
chart Label when set via JS
URL: https://github.com/apache/airflow/pull/5952#discussion_r319261604
##########
File path: airflow/www/templates/airflow/nvd3.html
##########
@@ -162,7 +162,7 @@ <h4 class="panel-title">
$('#chart_body').html('<div class="alert alert-danger">' +
payload.error + '</div>');
}
$("#sql_panel_body").html(payload.sql_html);
- $("#label").html(payload.label);
+ $("#label").html(escapeHTML(payload.label));
Review comment:
```suggestion
$("#label").text(payload.label);
```
----------------------------------------------------------------
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]
With regards,
Apache Git Services