I need write text like: <td th:text="${ticket.eventName} + '<br />' + ${ticket.ticketType}">Event Name</td>
But Thymeleaf return error because of <br />. How I can solve this problem?
UPD: I try make like: <td th:text="${ticket.eventName} + #{nextline} + ${ticket.ticketType}">Event Name</td> and this works. nextline value = \n, but #{nextline} works only one time. If I paste it repeatedly it doesn't work, why?
UPD2: I solve this problem. Instead '<br />' need paste '<br />' and th:text change to th:utext.
<br />to<br></br>here is an explanationth:utextinstead ofth:text?