Skip to content

Commit

Permalink
Do not escape <br> tags in task tooltips, so that the line breaks are…
Browse files Browse the repository at this point in the history
… formatted correctly. (#3250)
  • Loading branch information
ewallace-RI committed Sep 7, 2023
1 parent ee2fa4b commit 9c719b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions luigi/static/visualiser/js/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,14 @@ Graph = (function() {
.appendTo(g);

var titleText = node.name;
var content = $.map(node.params, function (value, name) { return name + ": " + value; }).join("<br>");
var content = $.map(node.params, function (value, name) { return escapeHtml(name + ": " + value); }).join("<br>");
g.attr("title", titleText)
.popover({
trigger: 'hover',
container: 'body',
html: true,
placement: 'top',
content: escapeHtml(content)
content: content
});
});

Expand Down

0 comments on commit 9c719b0

Please sign in to comment.