@sescandell you mean this http://twig.sensiolabs.org/doc/filters/escape.html ?

```html+django
{{ user.username|escape('js') }}
{{ user.username|e('js') }}
```