mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
17 lines
330 B
Markdown
17 lines
330 B
Markdown
|
Modifier strip
|
||
|
==============
|
||
|
|
||
|
This replaces all repeated spaces and tabs with a single space, or with the supplied string.
|
||
|
|
||
|
```smarty
|
||
|
{" one two "|strip} => 'one two'
|
||
|
```
|
||
|
|
||
|
Optional boolean parameter tell to the modifier strip also newline
|
||
|
|
||
|
```smarty
|
||
|
{" multi
|
||
|
line
|
||
|
text "|strip:true} => 'multi line text'
|
||
|
```
|