티스토리 뷰

728x90
<body th:utext="${html}"></body>

https://stackoverflow.com/questions/30394419/thymeleaf-spring-how-to-keep-line-break

 

Thymeleaf + Spring : How to keep line break?

I'm using Thymeleaf template engine with spring and I'd like to display text stored throught a multiline textarea. In my database multiline string are store with "\n" like this : "Test1\nTest2\n.....

stackoverflow.com

 

728x90
댓글