protected function getEscaperFilter($type, Twig_NodeInterface $node) {
$line = $node
->getLine();
$name = new Twig_Node_Expression_Constant('escape', $line);
$args = new Twig_Node(array(
new Twig_Node_Expression_Constant((string) $type, $line),
new Twig_Node_Expression_Constant(null, $line),
new Twig_Node_Expression_Constant(true, $line),
));
return new Twig_Node_Expression_Filter($node, $name, $args, $line);
}