title: HTML Element not rendering inside Thymeleaf conditional element
body: <p>This is the first time I'm using thymeleaf and I'm using Spring to return flash attributes to the login page if a user enters the wrong credentials.
  The error message (2 <code>div</code>'s) are displayed but the <code>&lt;span class="closeBtn"&gt;</code> inside is not rendered. </p>
  
  <p><img src="https://i.stack.imgur.com/zkwsn.png" alt="Image of error message"></p>
  
  <p><em>Source Code</em></p>
  
  <pre><code>&lt;div th:if="${message}" class="row"&gt;
      &lt;div th:text="${message}" th:class="${'col s8 offset-s2 m6 offset-m3 alert ' + alertClass}"&gt;
          &lt;span class="closebtn"&gt;&amp;times;&lt;/span&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>There should be an 'x' at the right of the message. I opened the browser inspector and it just doesn't show in the HTML either.</p>
  
  <p><em>Browser Inspector Code</em></p>
  
  <pre><code>&lt;div class="row"&gt;
      &lt;div class="col s8 offset-s2 m6 offset-m3 alert error"&gt;Incorrect username / password.&lt;/div&gt;
      ::after
  &lt;/div&gt;
  </code></pre>