String NormalizeWhitespace Example

The following example demonstrates the use of the String Normalize viper to replace whitespace characters with a single space character.

Smartsite SXML CopyCode image Copy Code
{string.normalizewhitespace(' hello    

world

')}
Example Result CopyCode image Copy Code
hello world
SXML