I have text with paragraphs in Data Base, I can see this text with System.out.println();
in java, but when I show this text on UI I see all text in one line.
Spring:
ModelAndView modelAndView = new ModelAndView();
modelAndView.addObject("allText",dtos);
modelAndView.setViewName("test");
return modelAndView;
So I try to show on UI:
<div th:each="text: ${allText}">
<div align="center" >
<b><span th:text="${text.description}">description</span></b>
</div>
</div>
Where my mistake?