AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.16.1-alpha-155" />

 XhtmlMarkupFormatter

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

An instance of the XhtmlMarkupFormatter.

public static string EscapeText(string content)

Escapes the given text by replacing special characters with their XHTML entity (amp, nbsp as numeric value, lt, and gt).

public static string XmlNamespaceLocalName(string name)

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

protected virtual string Attribute(IAttr attribute)

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)