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


You need to login to view comments.