count.lines ViewHelper <vhs:count.lines>
Counts number of lines in a string.
Usage examples
<v:count.lines>{myString}</v:count.lines> (output for example `42`
Copied!
{myString -> v:count.lines()} when used inline
Copied!
<v:count.lines string="{myString}" />
Copied!
{v:count.lines(string: myString)}
Copied!
Arguments
string
- DataType
- string
- Required
- false
- Description
- String to count, if not provided as tag content