Skip to main content
Filters modify the output of numbers, strings, variables, objects, and arrays. A filter is applied using a pipe character (|) followed by the filter name:
{{ variable | filter }}
You can chain multiple filters together, applying one after the other:
{{ "hello world" | capitalize | upcase }}
Some filters can take arguments which are specified after a colon (:) character:
{{ "hello world" | truncate: 5 }}
Check detailed documentation for each filter in the following sections:

Array

Filters for working with arrays and collections

String

Filters for manipulating text and strings

HTML

Filters for working with HTML content

Math

Filters for mathematical operations

Date

Filters for working with dates and times

Misc

Other useful filters
For complete documentation, refer to the LiquidJS documentation.