Check out example codes for "regex remove html tags". It will help you in understanding the concepts better.
Code Example 1
const s = "<h1>Remove all <b>html tags</n></h1>"
s.replace(new RegExp('<[^>]*>', 'g'), '')
Code Example 2
String target = someString.replaceAll("<[^>]*>", "");
Learn ReactJs, React Native from akashmittal.com