Skip to content
Log in

strip - Liquid Filter Reference

On this page

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.

Property Value
Return Type string
Category text

Examples

```liquid

{{ “ Who watches the watchers? “ | strip }} ```

Output: Who watches the watchers?

Was this article helpful?

Was this article helpful?