Skip to content

Instantly share code, notes, and snippets.

@hishnash
Created April 4, 2017 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hishnash/c231d865cf82da64c8e4b333c97bd467 to your computer and use it in GitHub Desktop.
Save hishnash/c231d865cf82da64c8e4b333c97bd467 to your computer and use it in GitHub Desktop.

URL Encoding

Visual

A Percent-encoding converter conforming to RFC3986.A Percent-encoding converter conforming to RFC3986.

Code

input

Text input to be encoded/decoded.

charset

Charset to be used.

mode

Operation mode (0: Encode, 1: Decode).

function evaluate(context){
    var dv = new DynamicValue('com.luckymarmot.URLEncodingDynamicValue', {
        'input': 'Something to be URL-encoded'
    });
    return dv.getEvaluatedString();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment