Encodes the input string for safe output in URLs to prevent Cross Site Scripting attacks.
					
					encodeForURL(string [,canonicalize]);
					
						→ returns string
					
				
falsebx-esapi module.
									encodeForURL("<tag>")
							
								Expected Result: %3Ctag%3E
encodeForURL("<tag>",true)
							
								Expected Result: %3Ctag%3E
<cfset formula = "5+3=8">
<cfoutput>http://example.com/math?formula=#encodeForURL(formula)#</cfoutput>
							
								Expected Result: http://example.com/math?formula=5%2B3%3D8
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.