Function grabText

  • Grabs the text content from the given HTML string or node array based on the selector.

    Parameters

    • from: string | Node[]

      The HTML string or node array to search in.

    • sel: Selector

      The selector defining the node.

    • Optionaloptions: TextOptions

      Options for getting the text content.

    Returns string

    The text content of the node or an empty string if not found.