Sets the text content of the specified node.

  • Parameters

    • node: HTMLElement | Text

      DOM node to set the text content for.

    • text: string

      String that represents the text content.

    Returns void