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
The problem was resolved for HTML in #866.
When I use cheerio.load(xmlString, { xml: true }) it still gets encoded.
cheerio.load(xmlString, { xml: true })
Is there a way to fix it?
The text was updated successfully, but these errors were encountered:
I was able to fix it by using:
const dom = htmlparser2.parseDocument(xmlString, { xmlMode: true, decodeEntities: false }); const $ = cheerio.load(dom); const out = $.html()
The only problem I see is that it removes the XML processing instructions. But I can concatenate them to the output.
Sorry, something went wrong.
No branches or pull requests
The problem was resolved for HTML in #866.
When I use
cheerio.load(xmlString, { xml: true })
it still gets encoded.Is there a way to fix it?
The text was updated successfully, but these errors were encountered: