Skip to main content

getText

Callable

  • getText(element: string | HTMLElement): string

  • Get the textContent of an element


    Parameters

    • element: string | HTMLElement

      The element to get the textContent of

    Returns string

    The text content of the element