ViewHelper Documentation
v:format.eliminate
Character/string/whitespace elimination ViewHelper
There is no example - each argument describes how it should be used and arguments can be used individually or in any combination.
Arguments
- content
- caseSensitive
- characters
- strings
- whitespace
- whitespaceBetweenHtmlTags
- tabs
- unixBreaks
- windowsBreaks
- digits
- letters
- nonAscii
content string
caseSensitive boolean
Wether or not to perform case sensitive replacement
characters anySimpleType
Characters to remove. Array or string, i.e. {0: 'a', 1: 'b', 2: 'c'} or 'abc' to remove all occurrences of a, b and c
strings anySimpleType
Strings to remove. Array or CSV, i.e. {0: 'foo', 1: 'bar'} or 'foo,bar' to remove all occorrences of foo and bar. If your strings overlap then place the longest match first
whitespace boolean
Eliminate ALL whitespace characters
whitespaceBetweenHtmlTags boolean
Eliminate ALL whitespace characters between HTML tags
tabs boolean
Eliminate only tab whitespaces
unixBreaks boolean
Eliminate only UNIX line breaks
windowsBreaks boolean
Eliminates only Windows carriage returns
digits boolean
Eliminates all number characters (but not the dividers between floats converted to strings)
letters boolean
Eliminates all letters (non-numbers, non-whitespace, non-syntactical)
nonAscii boolean
Eliminates any ASCII char