fenom/docs/ru/mods/strip.md
2014-08-01 12:12:19 +04:00

330 B

Modifier strip

This replaces all repeated spaces and tabs with a single space, or with the supplied string.

{"   one    two   "|strip} => 'one two'

Optional boolean parameter tell to the modifier strip also newline

{"    multi
    line
    text    "|strip:true} => 'multi line text'