Variable: load()
const
load: (content
,options
?,isDocument
?) =>CheerioAPI
Defined in: src/load-parse.ts:31
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.
Parameters
content
Markup to be loaded.
string
| AnyNode
| AnyNode
[] | Buffer
options?
Options for the created instance.
CheerioOptions
| null
isDocument?
boolean
Allows parser to be switched to fragment mode.
Returns
The loaded document.
See
https://cheerio.js.org/docs/basics/loading#load for additional usage information.