decodeFromURL

Decodes an encoded HTML URL string.

decodeFromURL(string); → returns string

Argument Reference

string string
Required

The encoded URL string to decode..

Examples
Sample code invoking the decodeFromURL function

<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>

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub