Variables
Const CDATA
CDATA: "!CDATA" = "!CDATA"
Const COMMENT
COMMENT: "__COMMENT__" = "__COMMENT__"
Const NO_CLOSE_EMPTY
NO_CLOSE_EMPTY: {} = tagMap("animate circle ellipse line path polygon polyline rect")
Const RE_ENTITY
RE_ENTITY: RegExp = new RegExp(`[${Object.keys(ENTITIES).join("")}]`, "g")
Const RE_TAG
RE_TAG: RegExp = /^([^\s\.#]+)(?:#([^\s\.#]+))?(?:\.([^\s#]+))?$/
Const SVG_TAGS
SVG_TAGS: {} = tagMap("animate animateColor animateMotion animateTransform circle clipPath color-profile defs desc discard ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter font foreignObject g image line linearGradient marker mask metadata mpath path pattern polygon polyline radialGradient rect set stop style svg switch symbol text textPath title tref tspan use view")
Const VOID_TAGS
VOID_TAGS: {} = tagMap("area base br col command embed hr img input keygen link meta param source stop track use wbr ?xml")