Converting richtext stream to str
This commit is contained in:
parent
fc03ea5927
commit
fdfebf783e
2 changed files with 2 additions and 2 deletions
|
@ -5,4 +5,4 @@ register = template.Library()
|
||||||
|
|
||||||
@register.filter
|
@register.filter
|
||||||
def ph_html_decode(value):
|
def ph_html_decode(value):
|
||||||
return unescape(value)
|
return unescape(str(value))
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif block.block_type == 'iframe' %}
|
{% elif block.block_type == 'iframe' %}
|
||||||
{% autoescape off %}
|
{% autoescape off %}
|
||||||
{{ block.value|ph_html_decode }}
|
{{ block.value|richtext|ph_html_decode}}
|
||||||
{% endautoescape %}
|
{% endautoescape %}
|
||||||
{% elif block.block_type != 'info' %}
|
{% elif block.block_type != 'info' %}
|
||||||
<p class="block-{{ block.block_type }}">
|
<p class="block-{{ block.block_type }}">
|
||||||
|
|
Loading…
Reference in a new issue