From 611ebf6f0d1bea27b6a1f6c7ed8bb6345938c6cf Mon Sep 17 00:00:00 2001 From: Cameron Steele Date: Sun, 31 Oct 2021 04:16:15 -0700 Subject: [PATCH] Update README.md make parseDocument() example clearer --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fa5afca3..8a11eaf9 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ The `DomHandler` produces a DOM (document object model) that can be manipulated ```js const htmlparser2 = require("htmlparser2"); -const dom = htmlparser2.parseDocument(); +const dom = htmlparser2.parseDocument(htmlString); ``` The `DomHandler`, while still bundled with this module, was moved to its [own module](https://github.com/fb55/domhandler).