regex remove html tags

HTML
const s = "<h1>Remove all <b>html tags</n></h1>"
s.replace(new RegExp('<[^>]*>', 'g'), '')String target = someString.replaceAll("<[^>]*>", "");
Source

Also in HTML: