Skip to main content
Question

Decode the Url

  • February 21, 2024
  • 1 reply
  • 92 views

Forum|alt.badge.img

Hi All, 

 

I want to decode the URL to plain text, is there a direct command using automation anywhere. 

 

example : 

encoded Url : https://edd.ca.gov/en/about_edd/employer_services_online/

Decoded Url :https%3A%2F%2Fedd.ca.gov%2Fen%2Fabout_edd%2Femployer_services_online%2F

1 reply

Forum|alt.badge.img+8
  • Navigator | Tier 3
  • 52 replies
  • February 21, 2024

You can use Run JavaScript action to call required function:
 

function encodeUri(str) {
  return encodeURI(str);
}

function decodeUri(encodedStr) {
  return decodeURI(encodedStr);
}

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings