§
    íNg(  ã                   ó$   — d dl mZ ddedefd„ZdS )é    )ÚBeautifulSoupúhtml.parserÚhtml_stringÚreturnc                 óN   — t          | |¦  «        }|                     ¦   «         }|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       úb/var/www/html/ai-engine/env/lib/python3.11/site-packages/unstructured/partition/html/html_utils.pyÚindent_htmlr      s&   € õ& ˜ kÑ2Ô2€DØ—-’-‘/”/€KØÐó    N)r   )Úbs4r   Ústrr   © r   r   ú<module>r      sH   ðØ Ð Ð Ð Ð Ð ðð ˜Sð Àð ð ð ð ð ð r   