Closed
Description
Expected Behavior
valid xhtml should be properly parsed. For that to work with htmlparser2
you need to pass
const options = {xmlMode: true}
Actual Behavior
nesting is all wrong
Steps to Reproduce
try to parse a more complicated xhtml snippet that contains scripts, noscript, comments and html5 audio tags
Reproducible Demo
https://repl.it/@rburgst/html-react-parser
Environment
- Version: 0.10.5
- Platform: node
- Browser: N/A