How to unescape unicode characters in input tag

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

How to unescape unicode characters in input tag

robin
HI,
I am using the following in my thymeleaf HTML :
        <input id="title" type="text" class="title edit" th:placeholder="#{new.optionaltitle}" th:value="${snippet.title}" maxlength="255"/>

The snippet.title value is = Sem tÌtulo.
And this gets rendered on the page as  =
Sem t&Igrave;tulo

However if i could have used th:utext somehow this wont have happened..
like i am using like this in some other place :
        <div class="dijitDialogTitle" th:utext="${snippet.title}"></div>
Is there any way in Thymleaf i can achieve the proper result.
Thanks
Reply | Threaded
Open this post in threaded view
|

Re: How to unescape unicode characters in input tag

Cesarvv

I also had the same problem, but I did not find a solution. This does not affect your database.