Mark field help text as safe 0.1.5
authorymh <ymh.work@gmail.com>
Thu, 05 Jul 2018 15:48:54 +0200
changeset 570 ccb0db163d69
parent 569 3a6b8a017e31
child 571 7902e5bbd87f
Mark field help text as safe
src/iconolab/templates/registration/register.html
--- a/src/iconolab/templates/registration/register.html	Thu Jul 05 13:52:05 2018 +0200
+++ b/src/iconolab/templates/registration/register.html	Thu Jul 05 15:48:54 2018 +0200
@@ -25,9 +25,9 @@
         {% endif %}
 
         {% if field.errors %}
-          <span class="help-block">{{ field.errors.as_text }}</span>
+          <span class="help-block">{{ field.errors.as_text | safe }}</span>
         {% else %}
-          <span class="help-block">{{ field.help_text }}</span>
+          <span class="help-block">{{ field.help_text | safe }}</span>
         {% endif %}
       </fieldset>
       {% endfor %}