Fix another case of #494

This commit is contained in:
jos 2017-12-28 16:16:41 +01:00
parent 3f1c4c682a
commit 43832dd532
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
};