I have a code used to edit the name in jstree, but when I change the name with an html code, it shows a message, how to block the html code?
'Rename': {
"separator_before": false,
"separator_after": false,
"label": "Edit",
"icon": "fas fa-edit",
"action": function (data) {
var inst = $.jstree.reference(data.reference),
obj = inst.get_node(data.reference),
selected_id = obj.id;
let a = $('a #1-1-1_anchor ').jstree('get_selected', true)[0];
let node_level = $('#' + selected_id).attr('aria-level'),
id = selected_id + "_anchor";
inst.edit(obj);
renameJsTree(obj);
}
},
Demo:
How to block notifications or tag HTML? Please help me