Apply utility method to externalizing text

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Apply utility method to externalizing text

Cesarvv
This post was updated on .
Hi. I cant apply utility method to externalizing text, this is my code:
th:text="${#strings.escapeXml(empresa.nombre)}"

What is the error? Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Apply utility method to externalizing text

Cesarvv
I answer:
th:utext="${#strings.escapeXml(#messages.msg('empresa.nombre'))}"