Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Calculator

0

71
Views
jstree rename node block alert tag HTML

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:

enter image description here

and: enter image description here

How to block notifications or tag HTML? Please help me

7 months ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2023 PeakU Inc. All Rights Reserved.