The plugin I’m using doesn’t support any HTML formating and I was adviced to use my serverside scripting to return line breaks and for converting any HTML special characters. As you can see do I use ReplaceNoCase, but instead of returning the actual line breaks, The <cfoutput> gives me the line break characters instead like <br /> <br /> .
Is there anyone arround familiar with integrating CF in Javascript and how I can solve this?
I’m guessing ReplaceNoCase isn’t working the way you think it should, and this has nothing to do with javascript
try it like this –
<!--- first make Windows style into Unix style --->
<CFSET variables.lyrics = REPLACE(getPlayList.track_lyrics,chr(13)&chr(10),chr(10),"ALL")>
<!--- now make Macintosh style into Unix style --->
<CFSET variables.lyrics = REPLACE(variables.lyrics,chr(13),chr(10),"ALL")>
<!--- now change breaks to BR tags --->
<CFSET variables.lyrics = REPLACE(variables.lyrics ,chr(10),"<br>","ALL")>