Click or drag to resize
MimeKit

HtmlUtilsHtmlEncode(Char, Int32, Int32) Method

Encode HTML character data.

Namespace: MimeKit.Text
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static string HtmlEncode(
	char[] data,
	int startIndex,
	int count
)

Parameters

data  Char
The character data to encode.
startIndex  Int32
The starting index of the character data.
count  Int32
The number of characters in the data.

Return Value

String
The encoded character data.
Exceptions
ExceptionCondition
ArgumentNullExceptiondata is null.
ArgumentOutOfRangeException

startIndex and count do not specify a valid range in the data.

Remarks
Encodes HTML character data.
See Also