Learn

strip_spaces

Strip whitespace from a string

Sample Usage

---
string: this is a string
---

{{ string|strip_spaces }} # thisisastring

Quite simply, this modifier removes all whitespace from a string. That’s pretty much it.

This article was last updated on March 30th, 2016. Find an error? Please let us know!