input_attrs, append the result to inputs list. join inputs elements into a string, separated with newline character, use it as an argument for the call to the function mark_safe,
return mark_safe ( '\n' . join ( inputs ) )