From 8782ebbdaf3a0ecd32b3ba60a06ea0f2f83b798c Mon Sep 17 00:00:00 2001 From: Osma Suominen Date: Thu, 28 Apr 2022 16:59:20 +0300 Subject: [PATCH] Use explicit $.parseHTML() to avoid JS syntax error. Fixes #1270 --- resource/js/hierarchy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/js/hierarchy.js b/resource/js/hierarchy.js index e48232a2c..0cd11141d 100644 --- a/resource/js/hierarchy.js +++ b/resource/js/hierarchy.js @@ -432,7 +432,7 @@ function nodeLabelSortKey(node) { // parse the HTML code in node.text and return just the label as a lower case value for sorting // should look like '12.3 Hello' - var label = $(node.text.toLowerCase()).filter('.tree-label').text(); + var label = $($.parseHTML(node.text.toLowerCase())).filter('.tree-label').text(); return domain + " " + label; }