0

How to actually jump a line in XML? to render it regarding your wishes?

I use translation with Symfony 3 and in my translation folder I would like to jump lines like I would do in html

my translation file (xml)

enter image description here

and here what it actually renders in my view.html.twig

enter image description here

chicken burger
  • 774
  • 2
  • 12
  • 32

1 Answers1

1

I think you may need to add <br> tag to represent line breaks and use |raw filter:

{{ 'my.translation.key'|trans|raw }}

more information may be found in this question: https://stackoverflow.com/a/14892213/3137047

Community
  • 1
  • 1
Rikijs
  • 728
  • 1
  • 12
  • 48