node-htmlparser
node-htmlparser copied to clipboard
Forgiving HTML/XML/RSS Parser in JS for *both* Node and Browsers
The headings should be a number sign (#) with a space then the text, like `# Heading`, not `#Heading`
Fixes #81, possibly needs test work?
Hi I copied and pasted your example usage code for browsers and I get this error: TypeError: Tautologistics.NodeHtmlParser.DefaultHandler is not a constructor. https://jsfiddle.net/skibulk/Lhnmjjs8/
I would like to convert DOM to JSON, modify the JSON and convet it back to DOM String. Please suggest
I might be doing the readout wrong, but this is the second time I've picked this up. It seems that `` isn't identified as a void tag, so they become...
'>' char used inside attribute value is matched by parser incorrectly as closing whole tag section
Example: `...`
The following regular expression used in parsing the HTML documents is vulnerable to ReDoS: ```js /(^\s+|\s+$)/g ``` The slowdown is moderately low: for 50.000 characters around 2.5 seconds matching time....
Can you share an example of a working script using Streaming To Parser in Node? Using your README text generates an error. ``` fs.createReadStream('./path_to_file.html').pipe(parser); ``` I get this error in...