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
It seems that parser.valid accepts even the most ludicrously malformed input strings as valid HTML:
parser.valid
const { valid } = require('node-html-parser'); var valid = require("node-html-parser").valid; valid('<p abc</p'); // false valid('<div<p abc</p></span>'); // false valid('<div><p abc</p></div>'); // true valid('<div<p abc</a></div>'); // true valid('@#><p'); // true valid('<<>'); // true
Also see here on RunKit
As far as I can see, none of the above should be true.
true
The text was updated successfully, but these errors were encountered:
fix: add tests for #227
5856ee2
No branches or pull requests
It seems that
parser.valid
accepts even the most ludicrously malformed input strings as valid HTML:Also see here on RunKit
As far as I can see, none of the above should be
true
.The text was updated successfully, but these errors were encountered: