JSFiddle - React, Tailwind, and code Playground
JavaScript
String.prototype.removeHtml=function(){
return this.replace(/(<([^>]+)>)/ig,"");
}
var string = "<br/>Hi";
console.log(string.removeHtml().substr(0, 7));
String.prototype.removeHtml=function(){
return this.replace(/(<([^>]+)>)/ig,"");
}
var string = "<br/>Hi";
console.log(string.removeHtml().substr(0, 7));