I'm currently working in a Spring Boot project with Thymleaf 2.1.3 . I'm adding some meta tags to a page, by doing:
<meta name="pagename" th:content="${pagename}"/>
The pagename variable is filled in by the controller. This works, but for the fact that pagename is HTML escaped. This is incorrect behaviour for my application. I sanitize the data myself, after that it should be place raw inside the content tag.
I've looked around and i found th:inline, which doesn't work for content tags. Also found th:utext, but that also doesn't work for th:content..
Does anybody know a solution for this problem?
Thanks!