Strip HTML Tags

Remove all HTML tags from a string.

Code

General
str.replace(/<[^>]*>/g, '');

Parameters

The string containing HTML tags to remove

Browser·fetch() may be limited by CORS

More JavaScript Snippets