From 9c719b0b74b6243ca6c5776a93ca24f73b9a7c48 Mon Sep 17 00:00:00 2001
From: ewallace-RI <85639928+ewallace-RI@users.noreply.github.com>
Date: Wed, 6 Sep 2023 17:53:48 -0700
Subject: [PATCH] Do not escape
tags in task tooltips, so that the line
breaks are formatted correctly. (#3250)
---
luigi/static/visualiser/js/graph.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/luigi/static/visualiser/js/graph.js b/luigi/static/visualiser/js/graph.js
index e646e4e025..f996526bd7 100644
--- a/luigi/static/visualiser/js/graph.js
+++ b/luigi/static/visualiser/js/graph.js
@@ -277,14 +277,14 @@ Graph = (function() {
.appendTo(g);
var titleText = node.name;
- var content = $.map(node.params, function (value, name) { return name + ": " + value; }).join("
");
+ var content = $.map(node.params, function (value, name) { return escapeHtml(name + ": " + value); }).join("
");
g.attr("title", titleText)
.popover({
trigger: 'hover',
container: 'body',
html: true,
placement: 'top',
- content: escapeHtml(content)
+ content: content
});
});