decorator function register.filter with 3 arguments string "slice", is_safe set to boolean True and needs_autoescape set to True.
@ register . filter ( "linebreaks" , is_safe = True , needs_autoescape = True )