title: getting Exception evaluating SpringEL expression: error in thymeleaf
body: <p>I am trying to replace the single quote (') character in my thymeleaf template. As our encoding is escaping it to <code>&amp;#39;</code> and the client is expecting it to be <code>&amp;apos;</code> </p>
  
  <p>To implement a quick fix, I am planning to replace all the occurrences of the single quote (') character in the payload with a space. However, doing so, I am getting the following error:</p>
  
  <blockquote>
    <p>Exception evaluating SpringEL expression:</p>
  </blockquote>
  
  <p>The replace expression I have used:</p>
  
  <pre><code>&lt;th:block th:with="Description=${op.jpText('$.short_description')}"&gt;
    &lt;u_short_description  th:text="${#strings.replace(Description,''',' ')}"&gt;&lt;/u_short_description&gt;
  &lt;/th:block&gt;
  </code></pre>
  
  <p>Any help would be highly appreciated. Thanks in advance!</p>