Ë
    ¶:Qg(  ã                   ó"   — d dl mZ ddedefd„Zy)é    )ÚBeautifulSoupÚhtml_stringÚreturnc                 ó>   — t        | |«      }|j                  «       }|S )aL  
    Formats / indents HTML.

    This function takes an HTML string and formats it using the specified HTML parser.
    It parses the HTML content and returns a prettified version of it.

    Args:
        html_string (str): The HTML content to be formatted.
        html_parser (str, optional): The parser to use for parsing the HTML. Defaults to 'html5lib':
            - 'html.parser': The built-in HTML parser. Use when you need just parsing
            - 'html5lib': The slowest. Use when you expect valid HTML parsed
                          the same way a browser does. It adds some extra
                          tags and attributes like <html>, <head>, <body>
            More in docs https://www.crummy.com/software/BeautifulSoup/bs4/doc/#installing-a-parser

    Returns:
        str: The formatted and indented HTML content.
    )r   Úprettify)r   Úhtml_parserÚsoupÚpretty_htmls       úc/var/www/html/answerous/venv/lib/python3.12/site-packages/unstructured/partition/html/html_utils.pyÚindent_htmlr      s!   € ô& ˜ kÓ2€DØ—-‘-“/€KØÐó    N)zhtml.parser)Úbs4r   Ústrr   © r   r   ú<module>r      s   ðÝ ñ˜Sð Àô r   