call the function format_html with 2 arguments: string '<optgroup label="{0}">' and return value of the function force_text,
output . append ( format_html ( '<optgroup label="{0}">' , force_text ( option_value ) ) )