Commit 9d2c3923 authored by Lawrence's avatar Lawrence

Make field description(help block) html safe and can output html tags.

parent 9246a205
......@@ -137,7 +137,7 @@
{{ field(**kwargs)|safe }}
</div>
{% if field.description %}
<p class="help-block">{{ field.description }}</p>
<p class="help-block">{{ field.description|safe }}</p>
{% endif %}
{% if direct_error %}
<ul class="input-errors">
......
......@@ -129,7 +129,7 @@
{% set _dummy = kwargs.setdefault('class', 'form-control') %}
{{ field(**kwargs)|safe }}
{% if field.description %}
<p class="help-block">{{ field.description }}</p>
<p class="help-block">{{ field.description|safe }}</p>
{% endif %}
{% if direct_error %}
<ul class="help-block input-errors">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment