MCPcopy
hub / github.com/django/django / escapeseq

Function escapeseq

django/template/defaultfilters.py:465–471  ·  view source on GitHub ↗

An "escape" filter for sequences. Mark each element in the sequence, individually, as a string that should be auto-escaped. Return a list with the results.

(value)

Source from the content-addressed store, hash-verified

463
464@register.filter(is_safe=True)
465def escapeseq(value):
466 """
467 An "escape" filter for sequences. Mark each element in the sequence,
468 individually, as a string that should be auto-escaped. Return a list with
469 the results.
470 """
471 return [conditional_escape(obj) for obj in value]
472
473
474@register.filter(is_safe=True)

Callers

nothing calls this directly

Calls 1

conditional_escapeFunction · 0.90

Tested by

no test coverage detected