title: render raw HTML in a Symfony controller
body: <p>I'd like to render a template to a string in a symfony controller and avoid escaping it. 
  I don't want to disble twig escaping globally.
  Kind of applying the <code>|raw</code> filter in the template itself, but from the controller.</p>
  
  <p>I imagine something like</p>
  
  <pre><code>$rendered_unescaped = $this-&gt;container-&gt;get('templating')
          -&gt;render($templatehere, $paramshere, 
             array('autoescape'=&gt;false));
  </code></pre>
  
  <p>By the way, I have wishfully tried the previous with no luck indeed.</p>
  
  <p>This need apears when I want to add an html chunk to an ajax json response and realize that I am getting htmlentities all around.</p>
  
  <p>Thanks,
  javier</p>