Add custom_filters : ph_html_decode
This commit is contained in:
parent
a7fdf769c4
commit
0289586811
1 changed files with 8 additions and 0 deletions
8
publichealth/home/custom_filters.py
Normal file
8
publichealth/home/custom_filters.py
Normal file
|
@ -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)
|
Loading…
Reference in a new issue