trim
function, since version 1.1.5
categories: sanitizing, strings
trim(str)
strip all whitespace characters from the beginning and end of a string
parameters
- str: string - input string
return type
string
example
'|' + ' hello there ' + '|'
'|' + trim(' hello there ') + '|'
returns
| hello there |
|hello there|