You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CQ.Create dosent include comment text, only the start <!-- and end --> comment tags. #59
var doc = CQ.Create(content, HtmlParsingMode.Document, HtmlParsingOptions.None);
The causes the comment tags to be included, but the not the actual comments. Our use case requires that we include the comments, as we are using this for inline Styling for emails.
Have confirmed the when IgnoreComments is set, not even the comment tags are included.
var intext = "";
var doc = CsQuery.CQ.Create(intext, HtmlParsingMode.Document, HtmlParsingOptions.None);
var outtext = doc.Render(DomRenderingOptions.None);``
outtext =
Seems to be somewhere in the HTMLParserSharp code....
Activity
jamietre commentedon Nov 20, 2012
Will look into this today or tomorrow - thanks for the bug report. This appears straightforward.
privjacinta commentedon Nov 26, 2012
A small test that reproduces the issue
var intext = "";
var doc = CsQuery.CQ.Create(intext, HtmlParsingMode.Document, HtmlParsingOptions.None);
var outtext = doc.Render(DomRenderingOptions.None);``
outtext =
Seems to be somewhere in the HTMLParserSharp code....
jamietre commentedon Nov 26, 2012
You mean it is altering whitespace outside of comments?
privjacinta commentedon Nov 26, 2012
Sorry GIT, because the intext and outtext in my example is in HTML github is formatting it rather than displaying :(
Fix Issue #59
jamietre commentedon Nov 28, 2012
Fixed in latest push. Nuget is not updated yet, but you can use the builds from ehre. Sorry about the time to get this corrected - busy time!
privjacinta commentedon Nov 29, 2012
Confirmed Working.. Thanks