trim

Removes whitespace or specific characters from one or both sides of a string.

1
{{$trim [value]}}
Example
format JSON XML
Data JSON
1
2
3
4
5
{
"Color": {
"name": " aqua "
}
}
Code
1
2
3
4
5
{{$trim
Color.name
search=" "
side="both"
}}
Result
Data XML
1
<Color name=" aqua "></Color>
HTML
1
2
3
4
5
{{$trim
Color._name
search=" "
side="both"
}}
Result

Params

1
2
3
4
5
{{$trim
" Hello world "
search=" "
side="both"
}}

Options

sideleft
right
both