* Used jQuery.append() instead of jQuery.text() to append the node's
name so that it won't be escaped twice since the name is already being
escaped in the server side via htmlentities.
link.append(icon);
link.append('<span class="item-content-wrap">'+node.name+'</span>');
} else {
- link.text(node.name);
+ link.append(node.name);
}
if (node.hidden) {
span.append(icon);
span.append('<span class="item-content-wrap">'+node.name+'</span>');
} else {
- span.text(node.name);
+ span.append(node.name);
}
if (node.hidden) {