Const
Matches any HTML/XML-like tag, including React fragments.
Intended for stripping markup from a string, not for validating HTML.
"<p>Hello</p>".replace(HTML_TAG_REGEX, "");// "Hello" Copy
"<p>Hello</p>".replace(HTML_TAG_REGEX, "");// "Hello"
"<><div>Hello</div></>".replace(HTML_TAG_REGEX, "");// "Hello" Copy
"<><div>Hello</div></>".replace(HTML_TAG_REGEX, "");// "Hello"
Matches any HTML/XML-like tag, including React fragments.
Intended for stripping markup from a string, not for validating HTML.