title: Symfony2/Twig: how to tell the custom twig tag to NOT escape the output
body: <p>I created a custom tag which should work like that:</p>
  
  <pre><code>{{ thumbnail(image.fullPath,620) }}
  </code></pre>
  
  <p>unfortunately I have to use it like that</p>
  
  <pre><code>{{ thumbnail(image.fullPath,620)|raw }}
  </code></pre>
  
  <p>Is there a way to unescape directly in the twig extension?</p>
  
  <p>My extension registers the thumbnail code like this:</p>
  
  <pre><code> public function getFunctions()
      {
          return array(
              'thumbnail' =&gt; new \Twig_Function_Method($this, 'thumbnail'),
          );
      }
  </code></pre>