The trim
filter is used to trim whitespace off the beginning and end of a string.
twig
{{ " This text has too much whitespace. " | trim }}
The above example will output the following:
twig
This text has too much whitespace.
🚀 New! Kestra raises $3 million to grow Learn more
The trim
filter is used to trim whitespace off the beginning and end of a string.
{{ " This text has too much whitespace. " | trim }}
The above example will output the following:
This text has too much whitespace.