getText

Get the text of this node.

getText(): Promise<string | null

Plain text content, not HTML.

Returns

  • Promise<string | null>