Thymeleaf

[Thymeleaf] 타임리프 strings.replace 개행 처리

주피터0410 2022. 3. 31. 14:36

front 단에서 개행 처리를 할경우 strings.replace 으로 문자열 처리를 해주면 됩니다.

 

th:utext="${#strings.replace(propertyLabelIn, '<br/>', '&lt;br /&gt;')}"

 

'Thymeleaf' 카테고리의 다른 글

Thymeleaf 레이아웃 설정(layout)  (0) 2023.02.02