encoder class : HtmlDecode(string) method

Description

Decodes a string using HTML encoding.

Syntax

encoderInstance.HtmlDecode(string encodedString)

Arguments

ClassNameDescription
stringencodedStringA string encoded by HTML encoding.

Return value

ClassDescription
stringA 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.

Links for reference

Copyright © Cooker All rights reserved.