&amp is not encoding correctly in ColdFusion


i using "&amp" in coldfusion variable , assigning variable. , dumped variable not getting results expected instead outputting below.

 

<cfset x = "abdul &amp; latheef">

<cfset y = x>

<cfdump var = "#x#">

<cfdump var = "#y#">

 

 

actual output:

 

x = abdul &amp latheef

y = abdul &amp 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

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account