EncodeForURL()
Encodes the given string for safe output in an URL.
Requires Extension: ESAPI extension
EncodeForURL( string=string, canonicalize=boolean );
Returns: String
Examples
Simple example for EncodeForURL
<cfoutput>
#encodeForUrl("https://docs.lucee.org/reference/functions/encodeforurl.html")#
</cfoutput>
See also
- Encode/Decode
- string.encodeForURL()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)