Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

& is not encoding correctly in ColdFusion

$
0
0

I am using "&amp" in a coldfusion variable and assigning this to another variable. And I dumped this variable but am not getting results as I expected instead it outputting as 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 about this why am getting output as I explained in Actual Output: . Timely help well appreciated.


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>