strip - Liquid Filter Reference - 0.11.2

Filter Name strip
Group Text
Version 0.11.2

Description

Removes all whitespace (tabs, spaces, and newlines) from both the left and right sides of a string. It does not affect spaces between words.

Examples

{{ "          Who watches the watchers?          " | strip }}
Who watches the watchers?

Back to Filter List

Back to Liquid Reference for 0.11.2

 

 
Back to Documentation