Skip to main content

safeseq

A "safe" filter for sequences. Mark each element in the sequence, individually, as safe, after converting them to strings. Return a list with the results.

def safeseq(
value: iterable
) - > list

A "safe" filter for sequences. Mark each element in the sequence, individually, as safe, after converting them to strings. Return a list with the results.

Parameters

NameTypeDescription
valueiterableA sequence of objects to be converted to strings and marked as safe for template rendering

Returns

TypeDescription
listA list of strings where each element has been explicitly marked as safe for HTML output