HtmlDocumentParse(String, Boolean, Boolean) Method

Parses the supplied HTML String to construct a basic Document.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static HtmlDocument Parse(
	string html,
	bool comments,
	bool preserveSpace
)

Parameters

html  String
String containing HTML formatted information.
comments  Boolean
Value indicating whether comments will be included.
preserveSpace  Boolean
Value indicating whether to preserve all space in the document.

Return Value

HtmlDocument
Populated HTML Document.

Remarks

This basic method does not apply most basic rules except the expectation that the string be well-structured.

See Also