Get a Demo

nlc2array

The nlc2array filter splits a string on new line characters or commas an 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|nlc2array %}
Get Started With Aptuitiv