How to get a list item  using a plain text field every time I hit enter I'm trying to get a list from a simple plain text field which will accept line breaks. I need to find a way to wrap an li tag around the content on that line. So everytime I hit enter, it wraps &lt;li&gt;Whatever is on that line&lt;/li&gt;

So going from this:



Into this:



Thanks!
You'll want to split on the line breaks, then loop through the resulting array...

{% for ingredient in listOfIngredients|trim|split('\n') %}
    &lt;li&gt;{{ ingredient }}&lt;/li&gt;
{% endfor %}