vakata / jstree

jquery tree plugin
http://jstree.com
MIT License
5.15k stars 1.38k forks source link

No way to access decoded value after edit() #2444

Closed vshih closed 3 years ago

vshih commented 4 years ago

The documentation states that in the edit() callback "You can access the node's title using .text". However this returns an HTML-encoded value:

jstree.edit(node, origVal, function (newNode, status, didCancel) {
    console.log(node.text);
}

upon input of say "This & that" will output

This & that

Is there a way to access the raw, unencoded value?