filter_trim (zotonic_mod_base v1.0.0-rc.17)

Removes whitespace at the start and end of a string.

For example:

{{ value|trim }}

When the value is "   hello   " then the output is "hello".

Internally, this calls z_string:trim/1 to perform the trimming.

Summary

Functions

trim/2