Sitecore 5.1.1 API

MainUtil.Unquote Method 

NOTE: This method is now obsolete.

Use StringUtil.Unquote instead


Removes enclosing single and double quotes from a string.

[Visual Basic]
Public Shared Function Unquote( _
   ByVal text As String _
) As String
[C#]
public static string Unquote(
   string text
);

Parameters

text
A string.

Return Value

The unquoted string.

Example

  string s0 = MainUtil.Unquote("'Hello world'"); // "Hello world"
  string s0 = MainUtil.Unquote("'Hello Andy's world'"); // "Hello Andy's world"

See Also

MainUtil Class | Sitecore Namespace