Escape an ampersand in a URL query value
Keep an ampersand inside a search term from being interpreted as the start of another URL parameter.
Set up the example
Encode the component pens & paper by itself. Leave the surrounding URL out of the input.
Check the result
The result should be pens%20%26%20paper. Decode it once to check that the two spaces and ampersand return.
Run this task
Use your own file or download the practice input below. The checks on this page describe the practice result.