setting.view.nameIsHTML.html 879 B

12345678910111213141516171819202122232425262728
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Boolean</span><span class="path">setting.view.</span>nameIsHTML</h2>
  4. <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
  5. <div class="desc">
  6. <p></p>
  7. <div class="longdesc">
  8. <p>Set to use HTML in 'name' attribute.</p>
  9. <p class="highlight_red">If allow HTML, please do check to avoid security issues, e.g. JavaScript Injection...</p>
  10. <p>Default: false</p>
  11. </div>
  12. </div>
  13. <h3>Boolean Format</h3>
  14. <div class="desc">
  15. <p> true means: 'name' attribute can be HTML.</p>
  16. <p> false means: 'name' attribute is only TEXT.</p>
  17. </div>
  18. <h3>Examples of setting</h3>
  19. <h4>1. Set to allow HTML</h4>
  20. <pre xmlns=""><code>var setting = {
  21. view: {
  22. nameIsHTML: true
  23. }
  24. };
  25. var node = {"name":"&lt;font color='red'&gt;test&lt;/font&gt;"};
  26. ......</code></pre>
  27. </div>
  28. </div>