code: def string_format(data, out, opts=None, **kwargs):
      '''
      Return the formatted outputter string, removing the ANSI escape sequences.
      '''
      raw_output = try_printout(data, out, opts, **kwargs)
      ansi_escape = re.compile(r'\x1b[^m]*m')
      return ansi_escape.sub('', raw_outputf string_format(data, out, opts=None, **kwargs):
      '''
      Return the formatted outputter string, removing the ANSI escape sequences.
      '''
      raw_output = try_printout(data, out, opts, **kwargs)
      ansi_escape = re.compile(r'\x1b[^m]*m')
      return ansi_escape.sub('', raw_output)
docs: Return the formatted outputter string, removing the ANSI escape sequences.