On the backend side, I am getting a text, for e.g:
"first line ↵ second line ↵ third line"
and in the HTML I would like this text to be displayed like
first line
second line
third line
this is my html code:
<ul>
<li th:text="${myVar}">#</li>
</ul>
and I can see al the text in a single line, with the '↵' unicode char omitted. And I have the same behaviour with the th:utext attribute, what would be the solution? Maybe it needs any type of preprocessing on the backend, and send another formatted string to the template?
Thanks!