DecodeForHTML

Description

Decodes an HTML encoded string.

Returns

Decoded HTML string.

Category

Display and formatting functions.

Function syntax

DecodeforHTML(string)

See also

Canonicalize,EncodeForHTMLAttributeEncodeForJavaScriptEncodeForCSSEncodeForURL

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>

 Adobe

Krijg sneller en gemakkelijker hulp

Nieuwe gebruiker?

Adobe MAX 2024

Adobe MAX
De creativiteitsconferentie

14–16 oktober Miami Beach en online

Adobe MAX

De creativiteitsconferentie

14–16 oktober Miami Beach en online

Adobe MAX 2024

Adobe MAX
De creativiteitsconferentie

14–16 oktober Miami Beach en online

Adobe MAX

De creativiteitsconferentie

14–16 oktober Miami Beach en online