decodeForHTML

Decodes an HTML encoded string.

decodeForHTML(string); → returns string

Argument Reference

string string
Required

The encoded string to decode.

Examples
Sample code invoking the decodeForHTML function

<cfif isDefined('form.submit')> 
 <b> 
 Output:<cfoutput >#decodeForHTML(form.encodedUserName)#</cfoutput> 
 </b> 
 <cfelse> 
 <cfset form.username=''/> 
 </cfif> 
 <cfform> 
 <cfinput name='encodedUserName' type='text' value='#form.encodedUserName#'> 
 <cfinput name='submit' type='submit' value='Submit'> 
 </cfform> 

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

Fork me on GitHub