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
|
||||
def ph_html_decode(value):
|
||||
return unescape(value)
|
||||
return unescape(str(value))
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
{% endif %}
|
||||
{% elif block.block_type == 'iframe' %}
|
||||
{% autoescape off %}
|
||||
{{ block.value|ph_html_decode }}
|
||||
{{ block.value|richtext|ph_html_decode}}
|
||||
{% endautoescape %}
|
||||
{% elif block.block_type != 'info' %}
|
||||
<p class="block-{{ block.block_type }}">
|
||||
|
|
Loading…
Reference in a new issue