title: How to compare jinja expression in javascript with escape sequences string?
body: <p>I am working on a django project which uses jinja as a templating language. My problem:</p>
  
  <p>I have a li tag inside html:</p>
  
  <pre><code>&lt;li onclick="toggle_size_selection('{% if \'/\' in co.2 %}{{ co.1 }}{% else %}{{co.2}}{% endif %}')"&gt;Point1&lt;/li&gt;
  </code></pre>
  
  <p>It returns me the following error in response when I visit the url:</p>
  
  <pre><code>TemplateSyntaxError at /detail-page/
  Could not parse the remainder: '\'/\'' from '\'/\''
  </code></pre>
  
  <p>How to properly write this expression?</p>
  
  <pre><code>"toggle_size_selection('{% if \'/\' in co.2 %}{{ co.1 }}{% else %}{{co.2}}{% endif %}')"
  </code></pre>