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

how replace comma with break line

$
0
0

Hi, 

Instead of John,Dee, i want it to show

John

Dee.

 

my code isn't do what i want, can anyone help pls?

thanks

 

<cfset mystring ="John,Dee" />

<cfset TheText = replace(mystring, ',', "#chr(10)##chr(13)#", "ALL") />

 

<cfoutput>

#TheText#

</cfoutput>


Viewing all articles
Browse latest Browse all 21760

Trending Articles



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