public function __construct($defaultStrategy = 'html'
) { $this->
setDefaultStrategy($defaultStrategy);
} public function getTokenParsers(): array
{ return [new AutoEscapeTokenParser()];
} public function getNodeVisitors(): array
{ return [new EscaperNodeVisitor()];
} public function getFilters(): array
{ return [ new TwigFilter('escape', 'twig_escape_filter',
['needs_environment' => true, 'is_safe_callback' => 'twig_escape_filter_is_safe'
]),