bs4.Comment.format_string

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

Format the given string using the given formatter.