Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

doc: add explanations for querystring #9259

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions doc/api/querystring.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ characters.
Options object may contain `maxKeys` property (equal to 1000 by default), it'll
be used to limit processed keys. Set it to 0 to remove key count limitation.

Options object may contain `decodeURIComponent` property (`decodeURIComponent` by default),
it can be used to decode `non-utf8` encoding string if necessary.
Options object may contain `decodeURIComponent` property (`querystring.unescape` by default),
it can be used to decode a `non-utf8` encoding string if necessary.

Example:

Expand All @@ -67,3 +67,7 @@ provided so that it could be overridden if necessary.

The unescape function used by `querystring.parse`,
provided so that it could be overridden if necessary.

It will try to use `decodeURIComponent` in the first place,
but if that fails it falls back to a safer equivalent that
doesn't throw on malformed URLs.