Skip to main content

join

Join a list with a string, like Python's str.join(list).

def join(
value: iterable,
arg: string,
autoescape: boolean = True
) - > string

Join a list with a string, like Python's str.join(list).

Parameters

NameTypeDescription
valueiterableThe collection of items to be joined into a single string.
argstringThe separator string used to join the elements in the value iterable.
autoescapeboolean = TrueDetermines whether the separator and individual values are automatically escaped for HTML safety before joining.

Returns

TypeDescription
stringA string containing the joined elements, marked as safe for HTML output.