Posted By

nerdfiles on 03/10/10


Tagged

javascript js html strip tags


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

wirenaught


Strip Tags


 / Published in: JavaScript
 

  1. String.prototype.strip_tags = function() {
  2. return this.replace(/<(.|\n)*?>/g, '');
  3. }

Report this snippet  

You need to login to post a comment.