Skip to main content
Latest
variable cheerio.load
import { cheerio } from "https://deno.land/x/deno_temme@v1.0.0/deps.ts";
const { load } = cheerio;

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

(
content:
| string
| import("https://esm.sh/v99/domhandler@5.0.3/lib/index.d.ts").AnyNode
| import("https://esm.sh/v99/domhandler@5.0.3/lib/index.d.ts").AnyNode[]
| Buffer
,
options?: import("./options.d.ts").CheerioOptions | null | undefined,
isDocument?: boolean,
) => import("./load.d.ts").CheerioAPI