Skip to Content
PureHTMLdocs
Transformers

split

Split a string into an array of substrings.

The split transformer splits a string into an array. If called without arguments (split or split()), it splits on runs of whitespace. Pass an argument to split by a custom delimiter.

Splitting on a Delimiter

{ selector: div, transform: 'split(",")' }

Splitting on Whitespace

{ selector: div, transform: split }

On this page