Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DomUtils.getText

deprecated

Get a node's inner text. Same as textContent, but inserts newlines for <br> tags.

@deprecated

Use textContent instead.

function getText(node: Node | Node[]): string;
§
getText(node: Node | Node[]): string
[src]

§Parameters

§
node: Node | Node[]
[src]

Node to get the inner text of.

§Return Type

§
string
[src]

node's inner text.