title: Javascript: Escape double square brackets for Thymeleaf
body: <p>I am using Thymeleaf + Datatables.js.</p>
  
  <p>I want to apply the default ordering on my datatable in javascript, like so:</p>
  
  <pre><code>&lt;script type="text/javascript" th:inline="javascript" class="init"&gt;
  
  /*&lt;![CDATA[*/
  
  $(document).ready(function() {
      $('#myTable').DataTable({
          "order" : [[ 0, 'asc' ]]
      });
  });
  
  /*]]&gt;*/
  
  &lt;/script&gt;
  </code></pre>
  
  <p>However, I get the following exception caused by Thymeleaf:</p>
  
  <blockquote>
    <p>org.thymeleaf.exceptions.TemplateProcessingException: Could not parse
    as expression: " 0, 'asc' "</p>
  </blockquote>
  
  <p>So even though I placed my js code into </p>
  
  <pre><code>/*&lt;![CDATA[*/ ... /*]]&gt;*/
  </code></pre>
  
  <p>Thymeleaf still wants to parse it as an expression. How do I escape the double square brackets?</p>