Whatever message this page gives is out now! Go check it out!

DecodeForHTML

Last update:
May 18, 2026

Description

Decodes an HTML encoded string.

Returns

Decoded HTML string.

Category

Display and formatting functions.

Function syntax

DecodeforHTML(string)

See also

History

ColdFusion (2018 release): Renamed parameter inputString to string.
ColdFusion 10: Added this function.

Parameters

Parameter
Description
string
Required. The encoded string to decode.

Example

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

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page