nl2array
The nl2array filter splits a string on new line characters and returns an array of the string parts.
This filter is unique to Aptuitiv. It is not part of the core Twig functionality.
{% set data = var|nl2array %}