From 43832dd53204e6159dfa09c360aa320475948810 Mon Sep 17 00:00:00 2001 From: jos Date: Thu, 28 Dec 2017 16:16:41 +0100 Subject: [PATCH] Fix another case of #494 --- src/js/treemode.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/treemode.js b/src/js/treemode.js index 42df6df..78d28d4 100644 --- a/src/js/treemode.js +++ b/src/js/treemode.js @@ -903,7 +903,9 @@ treemode._updateTreePath = function (pathNodes) { } function getName(node) { - return node.fieldInnerText || node.field || (isNaN(node.index) ? node.type : node.index); + return node.field !== undefined + ? node._escapeHTML(node.field) + : (isNaN(node.index) ? node.type : node.index); } };