W3cubDocs

/Liquid

rstrip

Removes all whitespace (tabs, spaces, and newlines) from the right side of a string.

Input

{{ "          So much room for activities!          " | rstrip }}

Output

So much room for activities!

© 2005, 2006 Tobias Luetke
Licensed under the MIT License.
https://shopify.github.io/liquid/filters/rstrip/