['html']] ), new TwigFilter( 'js_format', [Sanitize::class, 'jsFormat'], ['is_safe' => ['html']] ), new TwigFilter( 'sanitize', [Sanitize::class, 'sanitizeMessage'], ['is_safe' => ['html']] ), ]; } /** * Returns a list of functions to add to the existing list. * * @return TwigFunction[] */ public function getFunctions() { return [ new TwigFunction( 'get_js_value', [Sanitize::class, 'getJsValue'], ['is_safe' => ['html']] ), ]; } }