choice and i, substitute the result for w. call the function format_html with 3 arguments: self.inner_html, choice_value set to result of the function force_text,
output . append ( format_html ( self . inner_html , choice_value = force_text ( w ) , sub_widgets = '' ) )