How to encode/decode URL in Salesforce Lightning component?

From Lightning component controller or helper:

var uri = "URI_Value";
var enc = encodeURI(uri);//to encode
var dec = decodeURI(enc);// to decode

From Apex:


No comments:

Post a Comment