PDA

View Full Version : Javascript


Mac
03-12-2002, 08:46 PM
how can i parse a CR LF (0x0D 0x0A) into an html <br> in a client side script?

steve_ghb
03-13-2002, 11:39 AM
I would suggest the following:

'Escape' the string so you can search for the %2D and %2A (If memory serves these are the escape codes, you might want to confirm). Then, parse the string into substrings and separate each one with the break tag.

Hope this helps,

Steve