Decodes an HTML encoded string.
decodeForHTML(string);
→ returns string
<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.