prettify_html#

pyCGM2.Utils.prettyfier.prettify_html(html_string, debug=False)#

Restore inline HTML tag format of BeautifulSoup.prettify() output. Does not add or remove regular line breaks. Can be used with regular HTML if it already has the newlines you want to keep. :param html_string: HTML string to parse. :type html_string: str :param debug: Show results of each regexp application. :type debug: bool, optional

Returns:

str – Prettified HTML.