cheerioExample
Script
v3
Fork
1
2
3
4
5
6
7
8
export
let
cheerioExample
=
(
async
(
)
=>
{
const
{
default
:
$
}
=
await
import
(
"npm:cheerio"
)
;
const
document
=
$
(
`<article>
<div>Hello</div>
<span>World</span>
</article>`
)
;
return
document
.
find
(
"span"
)
.
text
(
)
;
}
)
(
)
;