How to replace \n with <br /> in JavaScript?
http://jsfiddle.net/ZmW45/