0

basically my problem is this: Lets for an example say that I created this text in my WYSIWYG implementation and posted it to the server

<p>Hello world</p>

But when I want to display this content using Thymeleaf it displays

<p>Hello world</p>

And I somehow need to convert it into an HTML tag. Any ideas? I've been looking but so far found nothing.

2
  • 1
    Does this answer your question? Process thymeleaf variable as html code and not text Commented Dec 12, 2021 at 20:35
  • You can use th:utext or an inline expression such as [(${html})] to display unscaped text. Commented Dec 12, 2021 at 20:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.