UNPKG

tag-soup

Version:

The fastest pure JS SAX/DOM XML/HTML parser.

18 lines (17 loc) 517 B
import { Node } from 'flyweight-dom'; /** * Options of {@link serializeMarkup}. */ export interface ResolvedSerializerOptions { toHashCode: (str: string) => number; voidTags?: Set<number>; areSelfClosingTagsSupported?: boolean; encodeText?: (text: string) => string; } /** * Serializes DOM node as HTML/XML string. * * @param node DOM node to serialize. * @param options Serialization options. */ export declare function serializeMarkup(node: Node, options: ResolvedSerializerOptions): string;