title: How can I escape special character '#' in thymeleaf th:attr
body: <p>I am using special character '#' as follows:</p>
  
  <pre><code>th:attr="data-target=#my_modal_+${myObject.id}"
  </code></pre>
  
  <p>This fails with error because of special character '#'</p>
  
  <blockquote>
    <p>Could not parse as assignation sequence</p>
  </blockquote>
  
  <p>If i remove '#' it doesnt throw error but doesn't work as intended.</p>