Trilium Backend API
    Preparing search index...
    load: (
        content: string | AnyNode | AnyNode[] | Buffer,
        options?: CheerioOptions | null,
        isDocument?: boolean,
    ) => CheerioAPI

    Create a querying function, bound to a document created from the provided markup.

    Note that similar to web browser contexts, this operation may introduce <html>, <head>, and <body> elements; set isDocument to false to switch to fragment mode and disable this.

    Type Declaration

      • (
            content: string | AnyNode | AnyNode[] | Buffer,
            options?: CheerioOptions | null,
            isDocument?: boolean,
        ): CheerioAPI
      • Parameters

        • content: string | AnyNode | AnyNode[] | Buffer

          Markup to be loaded.

        • Optionaloptions: CheerioOptions | null

          Options for the created instance.

        • OptionalisDocument: boolean

          Allows parser to be switched to fragment mode.

        Returns CheerioAPI

        The loaded document.

    https://cheerio.js.org/docs/basics/loading#load for additional usage information.