Filters¶
Filters in Experience Builder enhance the core functionality of the Liquid language by adding specialized features tailored to the platform's needs. These filters provide a range of capabilities that allow for data manipulation, formatting, and transformation directly within your templates. By extending Liquid with these platform-specific filters, Experience Builder enables more dynamic content rendering, streamlining workflows and improving the customization of page elements. Whether it's formatting dates, manipulating strings, or performing complex calculations, filters in Experience Builder help you tailor the content experience to your specific requirements.
Array Filters¶
Color Filters¶
- color_to_hex
- color_to_rgb
- color_to_hsl
- color_extract
- color_modify
- color_brightness
- color_saturate
- color_desaturate
- color_darken
- color_difference
- brightness_difference
- color_contrast
Number Filters¶
String Filters¶
- upcase
- truncatewords
- truncate
- strip_newlines
- strip
- split
- slice
- replace_last
- replace
- remove_last
- remove
- prepend
- replace_first
- append
- capitalize
- downcase
- lstrip
- newline_to_br
- rstrip