{% if component.tag %} {% if component.html %} <{{ component.tag }} {{ component.get_attr_text|safe }}> {{ html|safe }} {% endif %} {% else %} {{ component.html|safe }} {% endif %}