AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.8.2" />

 ElementExtensions

public static class ElementExtensions
Defines a set of extension methods for elements.
public static T AddClass<T>(this T elements, string className) where T : IEnumerable<IElement>

Adds the specified class name(s) for all elements in the given collection.

public static T After<T>(this T elements, string html) where T : IEnumerable<IElement>

Inserts the nodes generated from the given HTML code after each element of the provided elements.

public static T Append<T>(this T elements, string html) where T : IEnumerable<IElement>

Appends the nodes generated from the given HTML code to each element of the provided elements.

public static T Attr<T>(this T elements, string attributeName, string attributeValue) where T : IEnumerable<IElement>

Sets the specified attribute name to the specified value for all elements in the given collection.

public static T Attr<T>(this T elements, IEnumerable<KeyValuePair<string, string>> attributes) where T : IEnumerable<IElement>

Sets the specified attribute name to the specified value for all elements in the given collection.

public static T Attr<T>(this T elements, object attributes) where T : IEnumerable<IElement>

Sets the specified attribute name to the specified value for all elements in the given collection.

public static T Before<T>(this T elements, string html) where T : IEnumerable<IElement>

Inserts the nodes generated from the given HTML code before each element of the provided elements.

public static T Css<T>(this T elements, string propertyName, string propertyValue) where T : IEnumerable<IElement>

Extends the CSS of the given elements with the specified declarations.

public static T Css<T>(this T elements, IEnumerable<KeyValuePair<string, string>> properties) where T : IEnumerable<IElement>

Extends the CSS of the given elements with the specified declarations.

public static T Css<T>(this T elements, object properties) where T : IEnumerable<IElement>

Extends the CSS of the given elements with the specified declarations.

public static T Empty<T>(this T elements) where T : IEnumerable<IElement>

Empties all provided elements.

public static bool HasClass<T>(this T elements, string className) where T : IEnumerable<IElement>

Checks if any element in the given collection has the given class(es).

public static string Html<T>(this T element) where T : IElement

Gets the inner HTML of the given element.

public static T Html<T>(this T elements, string html) where T : IEnumerable<IElement>

Sets the inner HTML of the given elements.

public static T Prepend<T>(this T elements, string html) where T : IEnumerable<IElement>

Prepends the nodes generated from the given HTML code to each element of the provided elements.

public static T RemoveClass<T>(this T elements, string className) where T : IEnumerable<IElement>

Removes the specified class name(s) for all elements in the given collection.

public static T ToggleClass<T>(this T elements, string className) where T : IEnumerable<IElement>

Toggles the specified class name(s) for all elements in the given collection.

public static T Wrap<T>(this T elements, string html) where T : IEnumerable<IElement>

Wraps the given elements in the inner most element of the tree generated form the provided HTML code.

public static T WrapAll<T>(this T elements, string html) where T : IEnumerable<IElement>

Wraps all elements in the inner most element of the tree generated form the provided HTML code. The tree is appended before the first element of the given list.

public static T WrapInner<T>(this T elements, string html) where T : IEnumerable<IElement>

Wraps the content of the given elements in the inner most element of the tree generated form the provided HTML code.