bs4.BeautifulStoneSoup.format_string

BeautifulStoneSoup.format_string(s, formatter='minimal')

Format the given string using the given formatter.