Function: domToText()
function domToText(dom): string;
Defined in: packages/blockly/core/xml.ts:382
Converts a DOM structure into plain text. Currently the text format is fairly ugly: all one line with no whitespace, unless the DOM itself has whitespace built-in.
Parameters
| Parameter | Type | Description |
|---|---|---|
dom | Node | A tree of XML nodes. |
Returns
string
Text representation.