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
cheerio.load("<line>text</line>").html()
returns "<line></line>text", expected "<line>text</line>". The parsed tree is wrong, it's not just the html output bug.
"<line></line>text"
"<line>text</line>"
The text was updated successfully, but these errors were encountered:
htmlparser2 treats <line> as void SVG element.
htmlparser2
<line>
You can "fix" it by passing option xmlMode:
xmlMode
var cheerio = require('cheerio'); console.log(cheerio.load("<line>text</line>", {xmlMode:true}).html());
Sorry, something went wrong.
Thanks. That helps.
Fixed by #985
Successfully merging a pull request may close this issue.
returns
"<line></line>text"
, expected"<line>text</line>"
. The parsed tree is wrong, it's not just the html output bug.The text was updated successfully, but these errors were encountered: