Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Filters · mod_base
  • Reference
  • Frontend developer
  • Template filter
  • Transform
  • Text

split

Module

mod_base

Splits the filter value into a list of values.

The input value is split by the filter argument, for example:

{{ "foo bar baz"|split:" " }}

Will create the list ["foo", "bar", "baz"].

Edit on GitHub

Related documentation

Filters

truncatechars

Truncate a text to a maximum length in characters.

Filters

truncate_html

Truncate a HTML text to a maximum length.

Filters

replace

Regular expression replacement of a pattern with a string.

Filters

replace_args

Replace $N placeholders in string from a list of replacement values.

Filters

truncate

Truncate a text to a maximum length.

Filters

fix_ampersands

Replaces ampersands in the value with “&” entities.

Filters

append

Appends the argument to the value.

Filters

brlinebreaks

Translate HTML <br/> elements into ASCII newlines ( \n ).

Filters

trim

Removes whitespace at the start and end of a string.

GitHub © 2026 Zotonic