setting.view.nameIsHTML.html 1.1 KB

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