Javascript String htmlWithLines()
htmlWithLines()
String.prototype.htmlWithLines = function() { var text = this.html(); return text.replace(/\n/g, '<br/>'); }