Click or drag to resize
MimeKit

HtmlUtilsHtmlAttributeEncode(TextWriter, String, Char) Method

Encode an HTML attribute value.

Namespace: MimeKit.Text
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public static void HtmlAttributeEncode(
	TextWriter output,
	string value,
	char quote = '"'
)

Parameters

output  TextWriter
The TextWriter to output the result.
value  String
The attribute value to encode.
quote  Char  (Optional)
The character to use for quoting the attribute value.
Exceptions
ExceptionCondition
ArgumentNullException

output is null.

-or-

value is null.

ArgumentExceptionquote is not a valid quote character.
Remarks
Encodes an HTML attribute value.
See Also