Class TextEscape
Provides text escaping and unescaping for iCalendar (RFC 5545 §3.3.11) and vCard (RFC 6350 §3.4) text values. The escaped characters are: backslash, comma, semicolon, and newline.
Inherited Members
Namespace: DRIT.Mail.Rfc.Shared
Assembly: DRIT.Mail.dll
Syntax
public static class TextEscape
Methods
View SourceEscape(string)
Escapes special characters in text for iCal/vCard serialization.
Declaration
public static string Escape(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | Specifies the text value. |
Returns
| Type | Description |
|---|---|
| string |
Unescape(string)
Unescapes special characters in iCal/vCard text values.
Declaration
public static string Unescape(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | Specifies the text value. |
Returns
| Type | Description |
|---|---|
| string |