Skip to content

CQ.Create dosent include comment text, only the start <!-- and end --> comment tags. #59

Closed

Description

@privjacinta

We are using 1.3.1 from NuGet.

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.

Activity

  1. jamietre commented on Nov 20, 2012

    @jamietre
    Owner

    Will look into this today or tomorrow - thanks for the bug report. This appears straightforward.

  2. privjacinta commented on Nov 26, 2012

    @privjacinta
    Author

    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....

  3. jamietre commented on Nov 26, 2012

    @jamietre
    Owner

    You mean it is altering whitespace outside of comments?

  4. privjacinta commented on Nov 26, 2012

    @privjacinta
    Author

    Sorry GIT, because the intext and outtext in my example is in HTML github is formatting it rather than displaying :(

  5. added a commit that references this issue on Nov 28, 2012
  6. jamietre commented on Nov 28, 2012

    @jamietre
    Owner

    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!

  7. privjacinta commented on Nov 29, 2012

    @privjacinta
    Author

    Confirmed Working.. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions