all. I'm trying to display text in a textarea with line breaks. So for testing purposes, I've added the following text to the database:\[code\]asdfasdfasdf\[/code\]I've attached an image of what I see in my database management tool: http://imageshack.us/photo/my-images/837/dbdata1.jpg/So all I'm doing is using nl2br(text) and then sending it client-side. I'm applying the HTML to a textarea and this is what is appearing:http://imageshack.us/a/img837/5205/htmldata.jpgIf I encode the HTML with Javascript I get:\[code\]asdf%3Cbr%20%2F%3E%0A%3Cbr%20%2F%3E%0Aasdf%3Cbr%20%2F%3E%0Aasdf\[/code\]Everything looks good, but I'm getting %0A (which is apparently a line feed character) after each new line. I believe that is what is causing the space in front of each line.How can I remedy this? I've tried to replace %0A with '' using Javascript's string replace method (string.replace()) but I'm not having any luck.