Decodes an HTML encoded string.
decodeForHTML(string);
returns string
Name | Type | Required | Default | Description |
---|---|---|---|---|
string | string | Yes | The encoded string to decode. |
<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>