title: Escape special characters in twig
body: <p>I'm trying to espace these characters in twig: <code>&amp;#8593;</code>, <code>&amp;#8595;</code>, <code>\/</code> and <code>/\</code>.</p>
  
  <p>I tried:</p>
  
  <pre><code>{{ '&amp;#8593;' }}
  </code></pre>
  
  <p>and</p>
  
  <pre><code>{% raw %}
     &amp;#8593;
  {% endraw %}
  </code></pre>
  
  <p>But symfony always complaint about <code>&amp;</code>, <code>\</code>, <code>#</code> characters.</p>
  
  <p>I also tried the following with not success: <a href="https://stackoverflow.com/questions/12497130/how-to-escape-twig-delimiters-in-a-twig-template">How to escape Twig delimiters in a Twig template?</a></p>