Split a string by newline with EEL

How can a string (i.E. from a Textarea) be split into an array with “newline” as delimiter?
It does not work with “\n” or PHP_EOL.

Example:

placesArray = ${String.split(placesString, "\n")}

String.char(10) should work :wink:

1 Like

Correct would be:

String.chr(10)

3 Likes