Replace deprecated `escape` with `encodeURIComponent`
`escape` is deprecated per MDN [0], we should use encodeURIComponent instead. We do this, because we want to avoid confusion with e.g. the actual escaping of HTML entity characters with helper functions like `lodash.escape`. [0]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/escape
Showing
Please register or sign in to comment