Javascript String htmlWithLines()

Description

Javascript String htmlWithLines()

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



PreviousNext

Related