--- title: Customizing HTML nav_title: Custom HTML tags: demo ---

Nearly every piece of Tom Select is customizable. Render templates allow you to customize the HTML of rendered options, items, dropdown menu, optgroups and more.

{% from "demo.njk" import demo %} {% set label %}

This example provides a simple demonstration of how to override the default templates for options and items along with proper use of the escape() method.

{% endset %} {% set html %} {% endset %} {{ demo( label, html, script, style) }}