Skip to content

Commit 095b6a2

Browse files
committed
fix: export domhandler' Element
1 parent 44c078c commit 095b6a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function HTMLReactParser(html, options) {
3636
HTMLReactParser.domToReact = domToReact;
3737
HTMLReactParser.htmlToDOM = htmlToDOM;
3838
HTMLReactParser.attributesToProps = attributesToProps;
39-
HTMLReactParser.Element = require('domhandler/lib/node').Element;
39+
HTMLReactParser.Element = require('domhandler').Element;
4040

4141
// support CommonJS and ES Modules
4242
module.exports = HTMLReactParser;

0 commit comments

Comments
 (0)