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?
Thanks for your feedback! It helps us improve our docs.