Node.js examples for String:HTML String
Replace line separator with <br>
String.prototype.br = function() { return this.replace(/\n/g, '<br>') }