Encoding UtilsUnescape 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: 2025.1.9.0
The unescaped string
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
C#
public static string? Unescape(
this string? unescapeText
)VB
<ExtensionAttribute>
Public Shared Function Unescape (
unescapeText As String
) As StringC++
public:
[ExtensionAttribute]
static String^ Unescape(
String^ unescapeText
)F#
[<ExtensionAttribute>]
static member Unescape :
unescapeText : string -> string Parameters
- unescapeText String
- The string to unescape
Return Value
StringThe 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.