encoder class : HtmlDecode(string) method
Description
Decodes a string using HTML encoding.
Syntax
encoderInstance.HtmlDecode(string encodedString)
Arguments
| Class | Name | Description |
| string | encodedString | A string encoded by HTML encoding. |
Return value
| Class | Description |
| string | A string decoded by HTML encoding. |
Sample code
| 1: | encoder e = new encoder(); |
| 2: | string encoded = "<>"; |
| 3: | string decoded = e.HtmlDecode(encoded); // The result is "<>". |
Notes
It's a wrapper of the System.Web.HttpUtility.HtmlDecode(String) method.


