Summary:
If you set CsQueryConfig.HtmlParsingOptions to HtmlParsingOptions.None, calling Render will add some type values to the output.
Working example (for LinqPad):
CsQueryConfig config = new CsQueryConfig();
config.HtmlParsingOptions = HtmlParsingOptions.None;
var dom = CQ.Create("<div><p>test</p><p></p><p></p></div><p>test2<p>test3<p></p>", config);
dom.Render().Dump();
Output (stripped):
<div domindexprovider="CsQuery.RangedDomIndexProvider"
domrenderingoptions="QuoteAllAttributes" htmlparsingoptions="None" htmlencoder="CsQuery.Output.HtmlEncoderBasic" outputformatter="CsQuery.Output.FormatDefault"
... etc.
Summary: If you set
CsQueryConfig.HtmlParsingOptions
toHtmlParsingOptions.None
, callingRender
will add some type values to the output.Working example (for LinqPad):
Output (stripped):
Version: 1.3.5.69 (latest from
distribution
)Is this normal behaviour?