Thymeleaf : display a variable containing html tags
<p>In a mail I want to display a java variable : </p>

<pre><code>context.setVariable("content", "Hi&lt;br&gt;This is a test&lt;p&gt;&lt;/p&gt;");
</code></pre>

<p>In the mail template I do : </p>

<pre><code>&lt;p&gt;&lt;span th:text="|${content}|"&gt;&lt;/span&gt;&lt;/p&gt;
</code></pre>

<p>In the mail this is converted in :</p>

<pre><code>&lt;p&gt;&lt;span&gt;Hi&amp;lt;br&amp;gt;this is a test&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/p&gt;
</code></pre>

<p>How to make the variable well interpretated.</p>

<p>Thank you.</p>