Class HttpUtility
- Namespace
- SunamoShared
- Assembly
- SunamoShared.dll
HTTP utility methods to avoid importing System.Web for methods not in WebUtility.
public class HttpUtility
- Inheritance
-
HttpUtility
- Inherited Members
- Extension Methods
Methods
HtmlDecode(string)
Decodes an HTML-encoded string.
public static string HtmlDecode(string text)
Parameters
textstringThe HTML-encoded text to decode.
Returns
HtmlEncode(string)
Encodes a string for safe HTML output.
public static string HtmlEncode(string html)
Parameters
htmlstringThe HTML text to encode.
Returns
HtmlEncodeWithCompatibility(string, bool)
Encodes a string for safe HTML output with optional backward compatibility.
public static string HtmlEncodeWithCompatibility(string html, bool isBackwardCompatibility = true)
Parameters
htmlstringThe HTML text to encode.
isBackwardCompatibilityboolWhether to use backward-compatible encoding.
Returns
ParseQueryString(string)
Parses a query string into a name-value collection.
public static NameValueCollection ParseQueryString(string queryString)
Parameters
queryStringstringThe query string to parse.
Returns
UrlDecode(string)
URL-decodes the specified text.
public static string UrlDecode(string text)
Parameters
textstringThe URL-encoded text to decode.
Returns
UrlEncode(string)
URL-encodes the specified text.
public static string UrlEncode(string text)
Parameters
textstringThe text to URL-encode.