Skip to content

Commit 9e64317

Browse files
authored
docs: improve attr section
1 parent 0ab1a4c commit 9e64317

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ You can specify the selector using:
107107

108108
##### attr
109109

110-
Type: `string`<br>
110+
Type: `string|array`<br>
111111
default: `html`
112112

113113
It defines which property from the matched selector should be picked.
@@ -116,6 +116,8 @@ For example, if you want to extract an `img`, probably you are interested in `sr
116116

117117
Not defining the `attr` means you are going to get the `html` of the matched selector.
118118

119+
If you provide a collection, they will be used as fallbacks for getting the value.
120+
119121
## Cache Support
120122

121123
You can enable cache for saving API calls if they have been previously done

0 commit comments

Comments
 (0)