Skip to content

Commit

Permalink
fix(website): Update markup in loading example (#3642)
Browse files Browse the repository at this point in the history
  • Loading branch information
mroforolhc committed Aug 6, 2024
1 parent e48f022 commit d6cc54f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions website/docs/basics/loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ Here's an example of how to use the load method:
```js
import * as cheerio from 'cheerio';

const $ = cheerio.load(
'<html><head><title>Hello, world!</title></head></html>',
);
const $ = cheerio.load('<h1>Hello, world!</h1>');

console.log($('h1').text());
// Output: Hello, world!
Expand Down

0 comments on commit d6cc54f

Please sign in to comment.