Preserve plus sign in JavaScript URLSearchParams
encodeURIComponent() should be used to pass the URL Parameters to preserve the plus(+) sign when using JavaScript URLSearchParams. Sample JavaScript Code: let stra = encodeURIComponent( 'hello+world' ); let strb = ....