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.

  • 1
    Does this answer your question? [Process thymeleaf variable as html code and not text](https://stackoverflow.com/questions/23156585/process-thymeleaf-variable-as-html-code-and-not-text) – Metroids Dec 12 '21 at 20:35
  • You can use `th:utext` or an inline expression such as `[(${html})]` to display unscaped text. – Metroids Dec 12 '21 at 20:36

0 Answers0