JSFiddle - React, Tailwind, and code Playground
by slawe
HTML
<form name="myform">
<textarea style="background-color:f0f0f0; border 1px border:1px solid #afc784;" name=remove rows=4 cols=40></textarea><br>
<input type="button" value="Remove HTML Tags" onClick="stripHTML(this.form.remove)">
</form>
JavaScript
function stripHTML(){
var re = /(<([^>]+)>)/gi;
for (i=0; i < arguments.length; i++)
arguments[i].value=arguments[i].value.replace(re, "")
}