JSFiddle - React, Tailwind, and code Playground

by Deepak Manwal

JavaScript

var str = "hello, dude how < br> are < br> you < br>";
str = str.replace(/(<([^>]+)>)/ig,"");
alert(str);