Const
Matches standard HTML tags whose tag names begin with a letter.
Unlike HTML_TAG_REGEX, this pattern does not match React fragment tags (<> and </>).
<>
</>
"<div>Hello</div>".replace(STRICT_HTML_TAG_REGEX, "");// "Hello" Copy
"<div>Hello</div>".replace(STRICT_HTML_TAG_REGEX, "");// "Hello"
"<></>".match(STRICT_HTML_TAG_REGEX);// null Copy
"<></>".match(STRICT_HTML_TAG_REGEX);// null
Matches standard HTML tags whose tag names begin with a letter.
Unlike HTML_TAG_REGEX, this pattern does not match React fragment tags (
<>and</>).