count.words ViewHelper <vhs:count.words>

Counts words in a string.

Usage examples

<v:count.words>{myString}</v:count.words> (output for example `42`
Copied!
{myString -> v:count.words()} when used inline
Copied!
<v:count.words string="{myString}" />
Copied!
{v:count.words(string: myString)}

Copied!

Arguments

string

DataType
string
Required
false
Description
String to count, if not provided as tag content