Provides methods for encoding and decoding URLs when processing Web requests.
| C# | Visual Basic |
public static class WebUtility
Public NotInheritable Class WebUtility
| All Members | Methods | ||||
| Icon | Member | Description |
|---|---|---|
| HtmlDecode(String) |
Converts a string that has been HTML-encoded for HTTP transmission into a decoded string.
| |
| HtmlDecode(String, TextWriter) |
Converts a string that has been HTML-encoded into a decoded string, and sends the decoded string to a TextWriter output stream.
| |
| HtmlEncode(String) |
Converts a string to an HTML-encoded string.
| |
| HtmlEncode(String, TextWriter) |
Converts a string into an HTML-encoded string, and returns the output as a TextWriter stream of output.
|
Equivalent to System.Net.WebUtility in .NET Framework 4.0 or HttpUtility in Silverlight.
| Object | |
| WebUtility | |