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 <br />
tags in the text, not the markup - that is, you can actually see the <br />
in the browser and no actual line breaks are being created.
Am I doing something wrong here? Are there any alternative solutions?
Thanks!