Strip out html from label
This commit is contained in:
parent
1bc44b8882
commit
51185d16f0
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user