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).