Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Opposite to encodeURIComponent in JavaScript

Is there an opposite API to encodeURIComponent in JavaScript? Suppose you have a String with a bunch of %25 etc in it for URI purposes. Is there an API which un-encodeURI it?

Thanks.

like image 1000
More Than Five Avatar asked Sep 05 '26 03:09

More Than Five


1 Answers

If you go to the docs on MDN for encodeURIComponent you will see a section that shows you the related methods

See also

  • decodeURI
  • decodeURIComponent
  • encodeURI

A good resource helps you out with questions like this.

like image 180
epascarello Avatar answered Sep 07 '26 17:09

epascarello



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!