decodeForHTML

Decodes an HTML encoded string.

decodeForHTML(String encodedinput); → returns Decoded HTML string.

Argument Reference for the decodeForHTML function

inputString

Required: Yes
The encoded string to decode.

Examples sample code invoking the decodeForHTML function


Tag Syntax

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

Fork me on GitHub