We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the parsed document has a <script> tag which is not closed, the parser acts like the document had nothing. Example:
var htmlparser = require('htmlparser'), parser, pHandler, data = '<html><body><h1>Bla</h1><script src="somewhere"></body></html>'; pHandler = new htmlparser.DefaultHandler(function(err,doc){ if ( err ) throw err; console.log("doc: ",doc); });
The result is: doc: []
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If the parsed document has a <script> tag which is not closed, the parser acts like the document had nothing.
Example:
The result is:
doc: []
The text was updated successfully, but these errors were encountered: