Javascript String filter()

Description

Javascript String filter()



String.prototype.filter = function(){
 return this.replace(/\</g, '&lt;').replace(/\>/g, '&gt;');
}



PreviousNext

Related