Remove <BR> from String - Node.js String

Node.js examples for String:HTML String

Description

Remove <BR> from String

Demo Code

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

Related Tutorials