count.words ViewHelper <vhs:count.words>

Counts words in a string.

Usage examples

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

Arguments

string

DataType

string

Required

false

Description

String to count, if not provided as tag content