Html UtilsHtml Encode(Text Writer, String, Int 32, Int 32) Method
Encode HTML character data.
Definition
Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public static void HtmlEncode(
TextWriter output,
string data,
int startIndex,
int count
)Parameters
- output TextWriter
- The TextWriter to output the result.
- data String
- The character data to encode.
- startIndex Int32
- The starting index of the character data.
- count Int32
- The number of characters in the data.
Remarks
Encodes HTML character data.
Exceptions
| ArgumentNullException |
output is . -or- data is . |
| ArgumentOutOfRangeException |
startIndex and count do not specify a valid range in the data. |