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
Latest version of entities modules decodes it correctly:
require("entities").decodeHTML("?&image_uri=1&ℑ=2"); // returns ?&image_uri=1&ℑ=2
Htmlparser2 decodes it incorrectly in attributes, while everything is ok in text node.
var DOM = require("htmlparser2").parseDOM( '<img src="?&image_uri=1&ℑ=2"/><div>?&image_uri=1&ℑ=2</div>', { decodeEntities: true } ); // DOM[0].attribs.src is wrong = `?ℑuri=1&ℑ=2` // DOM[1].children[0].data is correct = `?&image_uri=1&ℑ=2`
The text was updated successfully, but these errors were encountered:
eaf2872
Successfully merging a pull request may close this issue.
Latest version of entities modules decodes it correctly:
Htmlparser2 decodes it incorrectly in attributes, while everything is ok in text node.
The text was updated successfully, but these errors were encountered: