bs4.ProcessingInstruction.format_string

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

Format the given string using the given formatter.