node-htmlparser
node-htmlparser copied to clipboard
Forgiving HTML/XML/RSS Parser in JS for *both* Node and Browsers
/Users/owen/Documents/workspace/node-htmlparser/snippet.js:8 var handler = new htmlparser.DefaultHandler(function(err, dom) { ^ TypeError: undefined is not a function at Object. (/Users/owen/Documents/workspace/node-htmlparser/snippet.js:8:15) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12)...
IE8 (at least) will take the following HTML: ``` ``` And convert it to: ``` ``` The neat part: node-htmlparser handles this just fine! The bad: libraries like soupselect (https://github.com/harryf/node-soupselect)...
npm install htmlparser will install v1.7.3 but v2.0.0,how can i get the newest version?
I install from npm, version is v1.7.6 `123` test faild. `expected:` [ { "raw": "ul", "data": "ul", "type": "tag", "name": "ul", "children": [ { "raw": "li", "data": "li", "type": "tag",...
The parser hangs with 100% cpu usage when parsing [this file](https://gist.github.com/arnaud-lb/ed8a5b157d8644d68ca7/raw/d6e6276312d662e23b65532506ccc0dbb7c39326/html.html). This can be reproduced by cloning https://gist.github.com/ed8a5b157d8644d68ca7.git and running bug.js.
node has a streams API. why do you have custom stream api
I don't know whether I'm missing something or not, please tell me if I do and excuse me if this is too obvious but there is no `DefaultHandler` method of...
I'm trying to integrate this into jsDOM to fix issues with parsing '' in attributes. After I successfully do that, I'll update the directions in the readme based on my...
i have html that looks like the following: ``` ``` it would be great if the 'br' is actually treated as part of the attribute value of 'title' instead of...
example: ``` ``` If a tag like this appears anywhere in the html, the parsing stops shortly after a tag like this. I saw this tag in the reddit source...