Description
Decodes an HTML encoded string.
Returns
Decoded HTML string.
Category
Display and formatting functions.
Decodes an HTML encoded string.
Decoded HTML string.
Display and formatting functions.
DecodeforHTML(String encodedinput)
Canonicalize,EncodeForHTMLAttribute, EncodeForJavaScript, EncodeForCSS, EncodeForURL
ColdFusion 10: Added this function.
Parameter |
Description |
---|---|
inputString |
Required. 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>