title: Escape HTML code with TWIG Markdown
body: <p>I am working on a blog comment bundle and I would like to let user post some code using Markdown.<br>
  I am working with symfony2, TWIG and <a href="https://github.com/KnpLabs/KnpMarkdownBundle">KNPMarkdownBundle</a> for parsing</p>
  
  <pre><code>{{ post.content|markdown }}
  </code></pre>
  
  <p>Actually, the content is well markdown parsed (<code>&lt;code&gt;</code> <code>&lt;p&gt;</code> ...) but if I have some HTML code in my content like :</p>
  
  <pre><code>Some content
  ``` &lt;script&gt;alert("hello world");&lt;/script&gt; ```
  </code></pre>
  
  <p>The code is not escaped and I have a alert message.
  Please can someone explain how can I deal with XSS issues ? (<code>foo|raw</code> and <code>foo|escape</code> are breaking parsing)</p>