Javascript String boldify()

Description

Javascript String boldify()

String.prototype.boldify = function () {
  return '**' + this.replace(/(\*|~|`)+/g, '').replace(/_/g, ' ') + '**';
};



PreviousNext

Related