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
For popular attribute such as id, class, and style which must have a value to be relevant are not removed from any tags when they are empty
id
class
style
For example...
let $ = cheerio.load('<p class="my-class">Hello World</p>', { xml: true }); $('p').removeClass('my-class'); console.log($.html()); $ = cheerio.load('<p style="color: red;">Hello World</p>', { xml: true }); $('*').css('color', ''); console.log($.html());
The output I get...
<p class="">Hello World</p> <p style="">Hello World</p>
The output I expected...
<p>Hello World</p> <p>Hello World</p>
The text was updated successfully, but these errors were encountered:
Hey, I can work on fixing this issue. Please give a like if you want my help. thanks
Sorry, something went wrong.
No branches or pull requests
For popular attribute such as
id
,class
, andstyle
which must have a value to be relevant are not removed from any tags when they are emptyFor example...
The output I get...
The output I expected...
The text was updated successfully, but these errors were encountered: