fenom/docs/en/mods/strip.md

17 lines
330 B
Markdown
Raw Normal View History

2014-01-29 12:01:31 +04:00
Modifier strip
==============
2013-02-13 18:51:53 +04:00
2014-01-29 12:01:31 +04:00
This replaces all repeated spaces and tabs with a single space, or with the supplied string.
2013-03-15 01:12:23 +04:00
```smarty
{" one two "|strip} => 'one two'
```
2014-01-29 12:01:31 +04:00
Optional boolean parameter tell to the modifier strip also newline
2013-03-15 01:12:23 +04:00
```smarty
{" multi
line
text "|strip:true} => 'multi line text'
```