AngleSharp by AngleSharp

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

 HtmlMarkupFormatter

Represents the standard HTML5 markup formatter.
public static readonly IMarkupFormatter Instance

An instance of the HtmlMarkupFormatter.

public static string EscapeText(string content)

Escapes the given text by replacing special characters with their HTML entity (amp, nobsp, lt, and gt).

public static string GetIds(string publicId, string systemId)

Gets the doctype identifiers from the given public and system identifier.

public static string XmlNamespaceLocalName(string name)

Gets the local name using the XML namespace prefix if required.

protected virtual string Attribute(IAttr attr)

Creates the string representation of the attribute.

public virtual string CloseTag(IElement element, bool selfClosing)

public virtual string Comment(IComment comment)

public virtual string Doctype(IDocumentType doctype)

public virtual string LiteralText(ICharacterData text)

public virtual string OpenTag(IElement element, bool selfClosing)

public virtual string Processing(IProcessingInstruction processing)

public virtual string Text(ICharacterData text)