I have a string:
var data = 'key1=value1&key2=value2&...';
String has a huge number of keys-values combinations. I need to change all values, by some rule - encodeURIComponent
it. I need to do that only relatively to values (and maybe keys), but now for the whole string.
Is there complete algorithm to do that?