Closed drachehavoc closed 3 years ago
The javascript pattern for methods, variables etc is camel case, but node-html-parser uses slug case.
my suggestion is to change to javascript pattern.
Before:
root.set_content('<li>Hello World</li>');
After:
root.setContent('<li>Hello World</li>');
root.innerHTML = '<li>Hello World</li>';
may works for you. use set_content when you use second param options.
set_content
The javascript pattern for methods, variables etc is camel case, but node-html-parser uses slug case.
my suggestion is to change to javascript pattern.
Before:
After: