title in fancytree needs to be escaped for HTML special characters

This commit is contained in:
azivner
2017-12-28 19:00:31 -05:00
parent 332fc16852
commit 6426157bb3
3 changed files with 8 additions and 2 deletions

View File

@@ -93,4 +93,8 @@ function isTopLevelNode(node) {
function isRootNode(node) {
return node.key === "root_1";
}
function escapeHtml(str) {
return $('<div/>').text(str).html();
}