| Leo Repp | 58b9f11 | 2021-11-22 11:57:47 +0100 | [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; |