Grabs an attribute value from the given HTML string or node array based on the selector.
The HTML string or node array to search in.
The selector defining the node.
The attribute key whose value is to be returned.
The value of the attribute or an empty string if not found.
Grabs an attribute value from the given HTML string or node array based on the selector.