공부 (@Deprecated)

[Thymeleaf] double underscore not working...

가비로그 2024. 8. 21. 21:21
728x90

https://github.com/thymeleaf/thymeleaf/issues/147

 

Double underscore removed and exception processing _ code · Issue #147 · thymeleaf/thymeleaf

Double underscore are removed when its expression is processed: <span th:attr="atributo='test__1__'">blabla</span> generates <span atributo="test1">blabla</span> instead of <span atributo="test__1_...

github.com

name.replaceAll("__([^_]+)__", "$1"),
728x90