title: How to prevent thymeleaf from replacing special characters in HTML attribute values?
body: <p>I'am using Thymeleaf in combination with a js micro-templating routine, which result in special characters in attribute values. When running Thymeleaf on</p>
  
  <pre><code>&lt;a style="display:&lt;%= x ? 'block' : 'none' %&gt;;"&gt;
  </code></pre>
  
  <p>it creates </p>
  
  <pre><code>&lt;a style="display:&amp;lt;%= x ? &amp;#39;block&amp;#39; : &amp;#39;none&amp;#39; %&amp;gt;;"&gt;
  </code></pre>
  
  <p>while I would expect to get exactly the same I put into the processor.
  How do I use special characters in HTML attribute values?
  Many thanks!</p>