Function fetchAndParseHtml

  • Download a file from a given URL as text and parse it to a list of HTML elements

    Parameters

    • url: string

      URL of the HTML-file to download and parse

    • Optional options: RequestInit

      Additional fetch-configuration to apply during the download

    Returns Promise<NodeList>

    Returns a promise with a list of all HTML elements

Generated using TypeDoc