Converting richtext stream to str

This commit is contained in:
app 2023-05-16 11:49:02 +00:00
parent fc03ea5927
commit fdfebf783e
2 changed files with 2 additions and 2 deletions

View File

@ -5,4 +5,4 @@ register = template.Library()
@register.filter
def ph_html_decode(value):
return unescape(value)
return unescape(str(value))

View File

@ -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 }}">