Posted By

aahmed753 on 07/15/09


Tagged

javascript html


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


Strip HTML using pure Javascript


 / Published in: JavaScript
 

URL: http://stackoverflow.com/questions/24816/escaping-strings-with-jquery

  1. function stripHTML(string) {
  2. return string.replace(/<(.|\n)*?>/g, '');
  3. }

Report this snippet  

You need to login to post a comment.