Create line breaks from text field I'm looking for a way to output line break from a text field.

I'm aware of the "Allow line breaks" option and I have set that to true. I've then entered text with multiple new lines. However, when this text gets output in the template, there are no line breaks.

I have tried using Twig's new line to br function, like this:

{% set address = contact.address|nl2br %}


but this creates &lt;br /&gt; tags in the text, not the markup - that is, you can actually see the &lt;br /&gt; in the browser and no actual line breaks are being created.

Am I doing something wrong here? Are there any alternative solutions?

Thanks!
Expanding from Pascal Mollet's answer, this was the solution I came up with.

First setting the address variable with the |nl2br filter:

{% set address = contact.address|nl2br %}


Then, outputting that variable with the |raw filter:

{{address|raw}}


Using them both together at once like this (as Pascal suggested):

{% set address = contact.address|nl2br|raw %}


didn't work.