My case is like this:
1) I have a <textarea> for the user to key in their information($data), which may contain 'enter' for new line.
2) I use Javascript to update the information on my page without refresh the whole page. However, when i echo out the $data, it will split into few line for the 'enter' part.
3) I view souce and find that my $data is like this :
Line1</br>
Line2</br>
line3</br>
==> cause javascript error when I try to use javasript to display this $data.
I don't knwo where the </br> come from, may be is MySQL will convert the 'enter' to </br>.
Thanks
Louis