Skip to content

Commit b345cfb

Browse files
committed
fix: stringify content in parser call
updated to work with newer htmlparser2 api
1 parent e2d4920 commit b345cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/html.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ module.exports = function( options, callback )
168168
return callback( null );
169169
},{ normalizeWhitespace: true } );
170170
var parser = new htmlparser.Parser( handler, { xmlMode: true } );
171-
parser.write( content );
171+
parser.write( content.toString() );
172172
parser.done();
173173
} );
174174
};

0 commit comments

Comments
 (0)