title: Thymeleaf java template engine is changing some special characters
body: <pre><code>final Context ctx = new Context();
  context.setVariable("data", data);
  templateEngine.process(template, context).trim();
  </code></pre>
  
  <p>here are the imports:</p>
  
  <pre><code>import org.thymeleaf.TemplateEngine;
  import org.thymeleaf.context.Context;
  </code></pre>
  
  <p>template variable points to "content_completed". Where this content_completed is a html file that exists in the project classpath.</p>
  
  <p>contents of this html file:</p>
  
  <pre><code>&lt;html xmlns:th="http://www.thymeleaf.org" th:inline="text" th:remove="tag"&gt;
  [[${data.fileName}]][[${T(abc.composer.NoteData).COMPLETED_NO_ERRORS}]]
  &lt;/html&gt;
  </code></pre>
  
  <p>where NoteData is a java class</p>
  
  <p>If this <strong>data.fileName</strong> has something like "sample&amp;.text", the Thymeleaf template engine is changing it to "sample&amp;amp;.text".</p>
  
  <p>Any thoughts on how to avoid this?</p>