strip html tags using javascript


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

this code is used to remove the html code in the given string


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

Report this snippet


Comments


You need to login to view comments.