called with an argument w, and sub_widgets as an empty string, append the result to output. call the function format_html with 3 arguments: self.outer_html,
return format_html ( self . outer_html , id_attr = format_html ( ' id="{0}"' , id_ ) if id_ else '' , content = mark_safe ( '\n' . join ( output ) ) )