X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/faae581f8b54b9cd3000d3060c446ed7dfe13447..61a11b4e16b955a231391273e91ffc6ced32fa67:/modules/nodeFamilyTree/nodeFamilyTree.js?ds=inline diff --git a/modules/nodeFamilyTree/nodeFamilyTree.js b/modules/nodeFamilyTree/nodeFamilyTree.js index af5d4d7..0825506 100644 --- a/modules/nodeFamilyTree/nodeFamilyTree.js +++ b/modules/nodeFamilyTree/nodeFamilyTree.js @@ -49,14 +49,14 @@ return function(sandbox) { if(child.getText) { var text = child.getText(); if(!text) - text = '<pusty tekst>'; + text = ''; else { if(text.length > 13) { text = text.substr(0,13) + '...'; } text = '"' + text + '"'; } - children.push({repr: text, bold: child.sameNode(textElement)}); + children.push({repr: _.escape(text), bold: child.sameNode(textElement)}); } else { children.push({repr: child.getWlxmlTag() + (child.getWlxmlClass() ? ' / ' + child.getWlxmlClass() : '')}); }