Click or drag to resize
MimeKit

HtmlUtilsHtmlEncode(ReadOnlySpan`1Char) Method

Encode HTML character data.

Namespace: MimeKit.Text
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static string HtmlEncode(
	ReadOnlySpan<char> data
)

Parameters

data  ReadOnlySpanChar
The character data to encode.

Return Value

String
The encoded character data.
Exceptions
ExceptionCondition
ArgumentNullExceptiondata is null.
Remarks
Encodes HTML character data.
See Also