SYMBIO
12-20-2002, 09:42 AM
Hi, I have a preview function in my web app. People enter text into a text AREA and press preview. this launches a window which shows what the article would look like, if live.
I have added some code which stores CARRIAGE RETURNS as "<BR />. instead of the user typing <BR />. it works in ASP, to STORE the story into the database, but to preview in JavaScript, i cant seem to capture the ASCII carriage return, and replace them with <BR />.
I have added some code which stores CARRIAGE RETURNS as "<BR />. instead of the user typing <BR />. it works in ASP, to STORE the story into the database, but to preview in JavaScript, i cant seem to capture the ASCII carriage return, and replace them with <BR />.