input|trim( [char_list] )
| Name | Type | Description | Required |
|---|---|---|---|
| char_list | string | Characters that should be removed. | No. |
This operator removes characters from the beginning and the end of the input string. By default, it will get rid of the following characters:
|
Character |
ASCII value (dec) |
ASCII value (hex) |
Description |
|---|---|---|---|
|
32 |
0x20 |
An ordinary space. |
|
|
\t |
9 |
0x09 |
A tab. |
|
\n |
10 |
0x0A |
A new line (line feed). |
|
\r |
13 |
0x0D |
A carriage return. |
|
\0 |
0 |
0x00 |
The NUL-byte. |
|
\x0B |
11 |
0x0B |
A vertical tab. |
{' Gizmo is not a gremlin. '|trim()}
The following output will be produced: "Gizmo is not a gremlin."
This document is based on eZ Publish Documentation. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License.