I'm using TINYMCE so that in a form with a textarea the user can give some styles to the text. This way in my database this field is saved, for example, as follows.
<p><strong>Some description goes here...</strong></p>
The issue is that when displaying it on a page it looks like this, and what I need is that the labels are not seen and the formatted/rendered text is seen like here
Some description goes here...
I've tried the <pre>
and tags <code>
but they don't give me the results I need.
I am using Thymeleaf with Spring framework. In the IDE I am trying to show the description in the following way
<article th:text="${product.description}"></article>
Thanks since now.
Try printing with the
unescaped text
, something like this:th:text
would be the one that's turning youtags
toentities
ref https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#unescaped-text