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.

Definition

Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public static string RestrictedEscape(
	this string escapeText
)

Parameters

escapeText  String
The string to escape

Return Value

String
The escaped string

Usage Note

In 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).

Remarks

This is mainly for vCard 2.1 properties in which commas and semi-colons should not be escaped.

See Also