Unescaped Text with th:placeholder

前端 未结 1 446
生来不讨喜
生来不讨喜 2021-01-23 12:37

In the current spring-boot / thymeleaf, some of the html views have a form where a field with like this is present:



        
相关标签:
1条回答
  • 2021-01-23 12:55

    The issue is Spring Message treat &Uacute as seperate & U a c u t e letters and not as Ú.

    Change the message to unicode as below

    account.sobrenome=\u00daltimo nome
    

    and use

    th:placeholder="#{account.sobrenome}"
    
    0 讨论(0)
提交回复
热议问题