Strip HTML Tags in JavaScript

var StrippedString = OriginalString.replace(/(<([^>]+)>)/ig,"");

3 Responses

Nice Avan,
All in all man, great solution!
@Max Carlquist Likewise greatjob!
@kevin nguyen Thanks man.

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.