• File: ElementSoup.py
  • Full Path: /home/masbinta/public_html/admin/installer/css/sass/sym404/root/opt/imunify360/venv/lib/python3.11/site-packages/lxml/html/ElementSoup.py
  • File size: 320 bytes
  • MIME-type: text/x-python
  • Charset: utf-8
__doc__ = """Legacy interface to the BeautifulSoup HTML parser.
"""

__all__ = ["parse", "convert_tree"]

from .soupparser import convert_tree, parse as _parse

def parse(file, beautifulsoup=None, makeelement=None):
    root = _parse(file, beautifulsoup=beautifulsoup, makeelement=makeelement)
    return root.getroot()