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 an A-tag href attribute includes parameter names that are valid, but with unfortunate names, they get html-decoded by cheerio.
Example:
require('cheerio').load('<a href="/?param=value®_number=123">')('a').attr('href');
will output:
/?param=value®number=123
Either the bug lies in ®_ getting the same treatment as ®, or perhaps the href attribute shouldn't be decoded at all.
®_
®
If the load() option decodeEntities is set to false this does not happen, so perhaps this bug lies in a cheerio dependency?
decodeEntities
false
The text was updated successfully, but these errors were encountered:
#720 is this fixing it?
Sorry, something went wrong.
This is actually in-line with browser behavior 😄
No branches or pull requests
If an A-tag href attribute includes parameter names that are valid, but with unfortunate names, they get html-decoded by cheerio.
Example:
will output:
/?param=value®number=123
Either the bug lies in
®_
getting the same treatment as®
, or perhaps the href attribute shouldn't be decoded at all.If the load() option
decodeEntities
is set tofalse
this does not happen, so perhaps this bug lies in a cheerio dependency?The text was updated successfully, but these errors were encountered: