Remove Links from String - Node.js String

Node.js examples for String:String Value

Description

Remove Links from String

Demo Code

String.prototype.removelinks = function() {
  var regexp = /<a [^>]*>(.*)<\/a>/gi;
  return this.replace(regexp, '$1');
};

Related Tutorials