Escape / Unescape string in URI encoding format Charset that is not escaped is represented NonUriChar member. NonUriChar = new Regex(@"[^0-9A-Za-z\-_.!~*'()\\;/?:@&=$,\[\]]");
Esempio n. 1
0
 /// <summary>
 /// Unescape the string escaped in URI encoding format.
 /// </summary>
 /// <param name="s">String to be unescape.</param>
 /// <returns>Unescaped string.</returns>
 public static string UriUnescape(this string s)
 {
     return(UriEncoding.Unescape(s));
 }
Esempio n. 2
0
 /// <summary>
 /// Escape the string in URI encoding format.
 /// </summary>
 /// <param name="s">String to be escaped.</param>
 /// <returns>Escaped string.</returns>
 public static string UriEscapeForTag(this string s)
 {
     return(UriEncoding.EscapeForTag(s));
 }