nl: call the function mark_safe with an arguments: for every n in nodelist results of the function force_text called with an argument n, joined in a string, return the result.
code: return mark_safe ( '' . join ( force_text ( n ) for n in nodelist ) )