EncodingUtilsUnescape Method

This method is used to unescape carriage returns, line feeds, commas, semi-colons, and backslashes within the string by replacing them with their literal characters.

Definition

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

Parameters

unescapeText  String
The string to unescape

Return Value

String
The unescaped 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

If any escaped single quotes, double quotes, or colons are encountered, they are also unescaped. The specifications do not state that they have to be escaped, but some implementations do, so they are handled here too just in case. However, they will not be escaped when written back out.

See Also