Removing the html tags in string in javascript


/ Published in: JavaScript
Save to your folder(s)

Removes the html tags in the string in javascript.


Copy this code and paste it in your HTML
  1. var att = str.replace(/(<([^>]+)>)/ig,"");

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.