Javascript String br()

Description

Javascript String br()

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



PreviousNext

Related