====== Decode(method, text) ======
Category:  Web function

\\ 
=====Description=====
This function decodes a text string using one of the available methods below.

\\ 
=====Arguments=====
^Argument^Type^Description^
|method  | Text |The decoding method to use on //text//.  See the table below.  |
|text  |Text |The text string to be decoded.  |
**Return value type:** Text.

\\ 
^Method  ^Notes  ^
|'uriComponentEscape' |Unescapes a URI, and then converts any plus characters ("+") into spaces. |
|'Base64' |
|'Base64url' | Base64 in URL encoding |

\\ 
=====Examples=====
  decode("uriComponentEscape", "one%2Bone")  //Returns 'one+one'

\\ 
=====See also=====
  * [[syntax:functions:encode|Encode(method, text)]]
  * [[syntax:functions:hexdecode|HexDecode(encoding, hex_text)]]
  * [[syntax:functions:uridecode|URIDecode(encoding, text)]]

