Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

load

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.

function load(
content:
| string
| Node
| Node[]
| Buffer
,
options?: CheerioOptions | null,
isDocument?: boolean,
): CheerioAPI;
§
load(content: string | Node | Node[] | Buffer, options?: CheerioOptions | null, isDocument?: boolean): CheerioAPI
[src]

§Parameters

§
content: string | Node | Node[] | Buffer
[src]
  • Markup to be loaded.
§
options?: CheerioOptions | null optional
[src]
  • Options for the created instance.
§
isDocument?: boolean optional
[src]
  • Allows parser to be switched to fragment mode.

§Return Type

§

The loaded document.