parseFormUrlEncoded

Parses a set of query parameters from a query string. This implementation follows exactly the specification for parsing application/x-www-form-urlencoded data as per the URL specification found here: https://url.spec.whatwg.org/#urlencoded-parsing

parseFormUrlEncoded
(,
bool stripWhitespace = true
)

Parameters

queryString string

The raw query string to parse, which may or may not contain a preceding '?'.

stripWhitespace bool

Whether to strip preceding and trailing whitespace from parsed values. Note that this is not a part of the spec, but added as a convenience.

Return Value

A list of parsed key-value pairs.