Function grabNode

  • Grabs a node 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 to be returned.

    Returns Node | {}

    The found node or an empty object if not found.