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


RSS Icon Subscribe to comments

You need to login to post a comment.