본문 바로가기
개발자의 삶/Web(html, script, css) 기초

javascript로 encode된 URL을 간단하게 decodeURIComponent 사용해서 변환(전환)하는 방법

by 나.R.D.(Rule Destoryer) 2023. 2. 6.

제일 쉬운 방법은 그냥 개발자도구 켜서 콘솔에 decodeURIComponent(url) 찍어주는 게 가장 쉬운데,
그냥 즐겨찾기나 원클릭으로 잡아놓고 쓰기도 좋다.
 

예시

 

변환(전환)하기

See the Pen DecodeURICompnent by 서대석(Key) (@seodaeya) on CodePen.

참고

decodeURIComponent() - JavaScript | MDN

The decodeURIComponent() function decodes a Uniform Resource Identifier (URI) component previously created by encodeURIComponent() or by a similar routine.

developer.mozilla.org

반응형

댓글