admin管理员组

文章数量:1278859

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.

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.

Share Improve this question asked Jun 4, 2013 at 13:02 More Than FiveMore Than Five 10.4k23 gold badges83 silver badges141 bronze badges 2
  • 7 ... decodeURIComponent. – Yoshi Commented Jun 4, 2013 at 13:04
  • That's an answer. My bad for not realising it. Add it and I'll accept it. – More Than Five Commented Jun 4, 2013 at 13:07
Add a ment  | 

1 Answer 1

Reset to default 11

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.

本文标签: urlencodeOpposite to encodeURIComponent in JavaScriptStack Overflow