Strip out html from label

This commit is contained in:
luis cielak 2018-08-10 13:50:34 -04:00
parent 1bc44b8882
commit 51185d16f0

View File

@ -4,7 +4,7 @@
{% macro TextInput(field, tooltip='', placeholder='') -%} {% macro TextInput(field, tooltip='', placeholder='') -%}
<div class='usa-input {% if field.errors %}usa-input--error{% endif %}'> <div class='usa-input {% if field.errors %}usa-input--error{% endif %}'>
<label for={{field.name}}> <label for={{field.name}}>
{{ field.label }} {% if tooltip %}{{ Tooltip(tooltip) }}{% endif %} {{ field.label | striptags }} {% if tooltip %}{{ Tooltip(tooltip) }}{% endif %}
{% if field.description %} {% if field.description %}
<span class='usa-input__help'>{{ field.description | safe }}</span> <span class='usa-input__help'>{{ field.description | safe }}</span>