EncodingUtilsRestrictedEscape Method
This method is used to replace carriage returns, line feeds, and backslashes within the string with
an appropriate escape sequence (\r \n \\). Commas and semi-colons are not escaped by this method.
Namespace: EWSoftware.PDIAssembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public static string RestrictedEscape(
this string escapeText
)
<ExtensionAttribute>
Public Shared Function RestrictedEscape (
escapeText As String
) As String
public:
[ExtensionAttribute]
static String^ RestrictedEscape(
String^ escapeText
)
[<ExtensionAttribute>]
static member RestrictedEscape :
escapeText : string -> string
- escapeText String
- The string to escape
StringThe escaped stringIn Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
This is mainly for vCard 2.1 properties in which commas and semi-colons should not be
escaped.