How to escape single quote (') in Thymeleaf : <p><code>&lt;h1 th:text="${'What\'s up?'}"&gt;&lt;/h1&gt;</code></p>

<p>I want this to output </p>

<p><code>&lt;h1&gt;What's up?&lt;/h1&gt;</code></p>

<p>But I get an <code>TemplateInputException</code>. I have tried with HTML entity but it fails the same.</p>
