HtmlUtilGetHtmlAttributes Method

Parse and return a collection of attribute names and values from the provided element text.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static HtmlAttributeCollection GetHtmlAttributes(
	string element,
	bool preserveSpace
)

Parameters

element  String
HTML element content with opening and closing braces.
preserveSpace  Boolean
Value indicating whether to preserve all whitespace in the document.

Return Value

HtmlAttributeCollection
Collection of attribute names and values for the specified element.

See Also