is there any way do the urldecode
in Django template file?
Just opposite to urlencode or escape
I want to convert app%20llc
to app llc
is there any way do the urldecode
in Django template file?
Just opposite to urlencode or escape
I want to convert app%20llc
to app llc
you have to write something like this instead of the previous answer otherwise you will get a maximum recursion depth
from urllib import unquote
from django.template.defaultfilters import register
from urllib.parse import unquote #python3@register.filter
def unquote_new(value):return unquote(value)
{{ raw|unquote_new }}