partial-xml-stream-parser
Version:
A lenient XML stream parser for Node.js and browsers that can handle incomplete or malformed XML data, with depth control, CDATA support for XML serialization and round-trip parsing, wildcard pattern support for stopNodes, and CDATA handling within stopNo
13 lines • 491 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.COMMON_ENTITIES = exports.STATIC_CLOSING_TAG_REGEX = exports.STATIC_OPENING_TAG_REGEX = void 0;
exports.STATIC_OPENING_TAG_REGEX = /<\s*([\w:-]+)((?:\s+[\w:-]+(?:=(?:"[^"]*"|'[^']*'|[^\s/>]+))?)*\s*)?(\/?)\>/;
exports.STATIC_CLOSING_TAG_REGEX = /<\/\s*([\w:-]+)\s*>/;
exports.COMMON_ENTITIES = {
lt: "<",
gt: ">",
amp: "&",
quot: '"',
apos: "'",
};
//# sourceMappingURL=constants.js.map