CsQuery
CsQuery copied to clipboard
CsQuery is a complete CSS selector engine, HTML parser, and jQuery port for C# and .NET 4.
Characters that should be escaped are not escaped when they occur in attribute values. That is, a valid HTML5 document (e.g., per https://html5.validator.nu/) can be passed to CsQuery and come...
cq[":root"] does not work https://api.jquery.com/root-selector/
Hi, I'm trying to use CsQuery to go through some pages of Thesaurus.com Using the address http://www.thesaurus.com/browse/test as an example, the code I'm using is as follows: ``` CQ document...
Hello Guys, We noticed that when using CSQuery with arabic language the following behaviour: 1- When using Cq.Text () it returns the correct result with no issues. 2- When using...
All russian characters renders like Винни , looks like an encoding problem. On test pages UTF-8 is set as sharset.
CsQuery Version: 1.3.4 .Net Framework: 4.5 Test case (VB): ``` Dim div As CsQuery.CQ = New CsQuery.CQ("This is not a comment, nor is this a comment.") Dim html As String...
``` CsQuery.CQ test = "HelloWorld"; test.Select("em").Before("{EM_BEFORE}"); test.Select("em").After("{EM_AFTER}"); test.Remove("em"); var test2 = test.Text().Replace("{EM_BEFORE}", "").Replace("{EM_AFTER}", ""); ``` Gets rid of one of the closing `` s, outputting: `HelloWorld` jQuery handles this correctly.
I'm trying to get inner text of a node, however `.InnerText` property seems to misbehave: ``` f# > CQ.Create("foo & bar bazqux").["hai"].[0].InnerText;; "foo & bar bazqux" ``` Compare...
I'm not sure where to ask, so I put it here... Can I use CsQuery to load up an HTML document and strip everything that is not text from it?...
I'm using CQ with async/await (i.e. the async procedure awaits the string to be downloaded, then processes it with CQ) called simultaneously, like this (pseudocode): ``` var tasks = urls.Select(ProcessUrl);...