blob: 4499daf4f5f86251cb478a439687318755be9d6e [file] [log] [blame]
Mathias Bynens79e2cf02020-05-29 14:46:171export interface DomSerializerOptions {
2 xmlMode?: boolean | 'foreign';
3 decodeEntities?: boolean;
4}
5
6/**
7 * Renders a DOM node or an array of DOM nodes to a string.
8 *
9 * Can be thought of as the equivalent of the `outerHTML` of the passed node(s).
10 *
11 * @param nodes Nodes to be rendered.
12 * @param options Changes serialization behavior
13 */
14export default function render(
15 nodes: {} | {}[],
16 options?: DomSerializerOptions
17): string;