MCPcopy
hub / github.com/django/django / iriencode

Function iriencode

django/template/defaultfilters.py:225–227  ·  view source on GitHub ↗

Escape an IRI value for use in a URL.

(value)

Source from the content-addressed store, hash-verified

223@register.filter(is_safe=True)
224@stringfilter
225def iriencode(value):
226 """Escape an IRI value for use in a URL."""
227 return iri_to_uri(value)
228
229
230@register.filter(is_safe=True, needs_autoescape=True)

Callers 2

test_unicodeMethod · 0.90
test_urlencodedMethod · 0.90

Calls 1

iri_to_uriFunction · 0.90

Tested by 2

test_unicodeMethod · 0.72
test_urlencodedMethod · 0.72