File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11var utils = require ( './utils' ) ,
22
33 diff = require ( 'diff' ) ,
4- htmlParser = require ( 'htmlparser ' ) ,
4+ htmlParser = require ( 'htmlparser2 ' ) ,
55 AST2Html = require ( 'htmlparser-to-html' ) ,
66 _ = require ( 'lodash' ) ;
77
@@ -15,7 +15,7 @@ function htmlToAST(HTMLDoc, options) {
1515 var parser ,
1616 parserHandler ;
1717
18- parserHandler = new htmlParser . DefaultHandler ( function ( err ) {
18+ parserHandler = new htmlParser . DomHandler ( function ( err ) {
1919 if ( err ) console . log ( err ) ;
2020 } , options ) ;
2121
Original file line number Diff line number Diff line change 3030 "dependencies" : {
3131 "vow" : " 0.4.3" ,
3232 "vow-fs" : " 0.3.1" ,
33- "htmlparser" : " 1.7.7" ,
3433 "htmlparser-to-html" : " 0.0.5" ,
3534 "coa" : " 0.4.0" ,
3635 "diff" : " 1.0.8" ,
3736 "colors" : " 0.6.2" ,
3837 "lodash" : " 2.4.1" ,
39- "istanbul" : " 0.3.0"
38+ "istanbul" : " 0.3.0" ,
39+ "htmlparser2" : " 3.7.3"
4040 },
4141 "devDependencies" : {
4242 "mocha" : " 1.18.2" ,
You can’t perform that action at this time.
0 commit comments