Description

Decodes an encoded HTML URL string.

Returns

Decoded HTML URL string.

Category

Display and formatting functions.

Function syntax

DecodeFromURL(String encodedinput)

See also

Canonicalize,EncodeForHTMLAttributeEncodeForJavaScriptEncodeForCSSEncodeForURL

History

ColdFusion 10: Added this function.

Parameters

Parameter

Description

inputString

Required. The encoded URL string to decode.

Example

<cfset string = "http://www.adobe.com/"> 
<cfset urlencoded = encodeforURL(string)> 
<cfset urldecoded = decodefromUrl(urlEncoded)> 
<cfoutput> 
String: #string# <br/> 
URL Encoded: #urlencoded#<br/> 
URL Decoded: #urldecoded#<br/> 
</cfoutput>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy