Mathias Bynens | 79e2cf0 | 2020-05-29 14:46:17 | [diff] [blame] | 1 | export 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 | */ | ||||
14 | export default function render( | ||||
15 | nodes: {} | {}[], | ||||
16 | options?: DomSerializerOptions | ||||
17 | ): string; |