title: Thymeleaf: &#39; added on passing parameter to javascript function
body: <p>Below code in thymeleaf template view is calling javascript function filter:</p>
  
  <pre><code>&lt;select th:onchange="'filter(this, \'' + ${#lists.size(books)} + '\');'"&gt;
      &lt;option value="all" selected="selected"&gt;All Books&lt;/option&gt;
      &lt;option value="fav"&gt;My Favourite&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>But, ${#lists.size(books)} is prefixed and suffixed with <code>&amp;#39;</code> as shown in the view-source:</p>
  
  <pre><code>&lt;select onchange="filter(this, &amp;#39;1&amp;#39;);"&gt;
      &lt;option value="all" selected="selected"&gt;All Books&lt;/option&gt;
      &lt;option value="fav"&gt;My Favourite&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>How to remove <code>&amp;#39;</code> from javascript function call in Thymeleaf?</p>