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
I'm trying to get inner text of a node, however .InnerText property seems to misbehave:
.InnerText
> CQ.Create("<hai>foo & bar baz<br>qux</hai>").["hai"].[0].InnerText;; "foo & bar bazqux"
Compare to jQuery:
> $("<hai>foo & bar baz<br>qux</hai>")[0].innerText "foo & bar baz\nqux"
At the same time Text() seems to work closer to jQuery:
Text()
> CQ.Create("<hai>foo & bar baz<br>qux</hai>").["hai"].Text();; "foo & bar bazqux"
Do you have a suggestion on how can I want to achieve behaviour similar to jQuery?
The text was updated successfully, but these errors were encountered:
Write CsQuery.Config.OutputFormatter = OutputFormatters.HtmlEncodingNone; before any CQ use.
Sorry, something went wrong.
@alexander1986 thanks, that makes output of .InnerText similar to .Text(). Although I wish I could get the exact behavior of jQuery.
.Text()
No branches or pull requests
I'm trying to get inner text of a node, however
.InnerText
property seems to misbehave:Compare to jQuery:
At the same time
Text()
seems to work closer to jQuery:Do you have a suggestion on how can I want to achieve behaviour similar to jQuery?
The text was updated successfully, but these errors were encountered: