tag-soup
Version:
The fastest pure JS SAX/DOM XML/HTML parser.
19 lines (18 loc) • 727 B
TypeScript
import { IParser, IParserOptions, ISaxHandler } from './parser-types';
/**
* Creates a pre-configured XML SAX parser.
*
* @param handler The parsing handler.
* @param options Options that override the defaults.
* @see {@link xmlParserOptions}
*/
export declare function createXmlSaxParser(handler: ISaxHandler, options?: IParserOptions): IParser<void>;
/**
* The default XML parser options:
* - CDATA sections, processing instructions and self-closing tags are recognized;
* - XML entities are decoded in text and attribute values;
* - Tag and attribute names are preserved as is;
*
* @see {@link https://github.com/smikhalevski/speedy-entities decodeXml}
*/
export declare const xmlParserOptions: IParserOptions;