--- title: Javascript tree with autoescape layout: page js: examples/autoescape.js css: example.css ---

Example 6 - autoEscape

You can put html in the node titles setting the autoEscape option to false.

html

{% highlight html %}
{% endhighlight %}

javascript

{% highlight js %} var data = [ { label: 'examples', children: [ { name: 'Example 1' }, { name: 'Example 2' }, 'Example ' ] } ]; // set autoEscape to false $('#tree1').tree({ data: data, autoEscape: false, autoOpen: true }); {% endhighlight %}