Skip to content
Browse files

Adding safe templates for field.strict.html

  • Loading branch information...
1 parent 62ac21d commit f375441e8c2dacd26c59d22157314f241b7414b9 @pydanny pydanny committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 uni_form/templates/uni_form/field.strict.html
View
4 uni_form/templates/uni_form/field.strict.html
@@ -6,7 +6,7 @@
<div id="div_{{ field.auto_id }}" class="ctrlHolder{% if field.errors %} error{% endif %}{% if field|is_checkbox %} checkbox{% endif %} {% if field.field.widget.attrs.class %} {{ field.field.widget.attrs.class }}{% endif %}">
{% for error in field.errors %}
<p id="error_{{ forloop.counter }}_{{ field.auto_id }}" class="errorField">
- {{ error }}
+ {{ error|safe }}
</p>
{% endfor %}
@@ -16,7 +16,7 @@
{% if field.label %}
<label for="{{ field.auto_id }}" class="inlineLabel">
- {{ field.label }}{% if field.field.required %}<em>*</em>{% endif %}
+ {{ field.label|safe }}{% if field.field.required %}<em>*</em>{% endif %}
</label>
{% endif %}

0 comments on commit f375441

Please sign in to comment.
Something went wrong with that request. Please try again.