HtmlDocument(String, Boolean, Boolean, Boolean) Constructor

Create a new Instance of the HtmlDocument Item.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 26.2218.4544
C#
public HtmlDocument(
	string html,
	bool includeComments = true,
	bool preserveSpace = false,
	bool treatTextAsNodes = false
)

Parameters

html  String
Html content to preload the Document with while creating.
includeComments  Boolean  (Optional)
Value indicating whether to include comments in the content.
preserveSpace  Boolean  (Optional)
Value indicating whether to preserve whitespace throughout the document.
treatTextAsNodes  Boolean  (Optional)
Value indicating whether text will be treated as dedicated child text nodes.

See Also