HtmlFormat.Encode Method

Namespace
Kampute.DocToolkit.Formatters
Assembly
  • Kampute.DocToolkit.dll

Definition

Encodes special HTML characters in the specified text and writes the encoded content to the specified writer.
public override void Encode(ReadOnlySpan<char> text, TextWriter writer)

Parameters

text ReadOnlySpan<char>
The text to encode.
writer TextWriter
The TextWriter to write the encoded content to.

Exceptions

ArgumentNullException
Thrown when writer is null.