From a10f69876f3aac06b52cc442840e584d810c9969 Mon Sep 17 00:00:00 2001 From: Harish Carpenter <92323049+harishcarpenter1@users.noreply.github.com> Date: Tue, 2 Jan 2024 23:51:37 +0530 Subject: [PATCH] Update loading.md (#3421) import * as cheerio from 'cheerio'; const $ = cheerio.load('

Hello, world!

'); console.log($('h1').text()); instead of h1, the title was mentioned so the output was empty string --- website/docs/basics/loading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/basics/loading.md b/website/docs/basics/loading.md index 8a5cd2d90c..30f0ca5768 100644 --- a/website/docs/basics/loading.md +++ b/website/docs/basics/loading.md @@ -49,7 +49,7 @@ import * as cheerio from 'cheerio'; const $ = cheerio.load('

Hello, world!

'); -console.log($('title').text()); +console.log($('h1').text()); // Output: Hello, world! ```