protected function optimizeRawFilter(Twig_NodeInterface $node, Twig_Environment $env)
    {
        if ($node instanceof Twig_Node_Expression_Filter && 'raw' == $node->getNode('filter')->getAttribute('value')) {
            return $node->getNode('node');
        }

        return $node;
    }
protected function optimizeRawFilter(Twig_NodeInterface $node, Twig_Environment $env)
    {
        if ($node instanceof Twig_Node_Expression_Filter && 'raw' == $node->getNode('filter')->getAttribute('value')) {
            return $node->getNode('node');
        }

        return $node;
    }
protected function optimizeRawFilter ( Twig_NodeInterface $ node , Twig_Environment $ env ) { if ( $ node instanceof Twig_Node_Expression_Filter && 'raw' == $ node -> getNode ( 'filter' ) -> getAttribute ( 'value' ) ) { return $ node -> getNode ( 'node' ) ; } return $ node ; }
Removes "raw" filters.

@param Twig_NodeInterface $node A Node
@param Twig_Environment   $env  The current Twig environment
Removes raw filters .