& is not encoding correctly in ColdFusion
i using "&" in coldfusion variable , assigning variable. , dumped variable not getting results expected instead outputting below.
<cfset x = "abdul & latheef">
<cfset y = x>
<cfdump var = "#x#">
<cfdump var = "#y#">
actual output:
x = abdul & latheef
y = abdul & latheef
expected output:
x = abdul & latheef
y = abdul & latheef
any idea why getting output explained in actual output: . timely appreciated.
why expect ampersand instead of html encoding? dumping value of variable, contains encoded version. if outputted variable.
if output variable browser encoded version, *the browser* decode ampersand. result *should* desiring.
jason
More discussions in ColdFusion
adobe
Comments
Post a Comment