How to remove all HTML tags from a string using JavaScript?
Originally Published Here ๐!
To remove all HTML tags from a string, we can use the replace() string method in JavaScript.
TL;DR
// string with html tags
const str = "<div><h1>Hello World!</h1></div>";
// remove all html tags from string
str.replace...
melvingeorge-me.hashnode.dev1 min read