diff --git a/publichealth/home/custom_filters.py b/publichealth/home/custom_filters.py new file mode 100644 index 0000000..d7be0da --- /dev/null +++ b/publichealth/home/custom_filters.py @@ -0,0 +1,8 @@ +from django import template +from html import unescape + +register = template.Library() + +@register.filter +def ph_html_decode(value): + return unescape(value)