diff --git a/publichealth/home/custom_filters.py b/publichealth/home/custom_filters.py index d7be0da..970546e 100644 --- a/publichealth/home/custom_filters.py +++ b/publichealth/home/custom_filters.py @@ -5,4 +5,4 @@ register = template.Library() @register.filter def ph_html_decode(value): - return unescape(value) + return unescape(str(value)) diff --git a/publichealth/home/templates/home/page_content.html b/publichealth/home/templates/home/page_content.html index 45814a2..589c7c4 100644 --- a/publichealth/home/templates/home/page_content.html +++ b/publichealth/home/templates/home/page_content.html @@ -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' %}