Unescaped Text with th:placeholder

前端 未结 1 470
生来不讨喜
生来不讨喜 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 Ú 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)
提交回复
热议问题