bs4.Declaration.format_string

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

Format the given string using the given formatter.