urlencode

Encode a string.

URLENCODE

NAME

urlencode - Encode a string.

SYNOPSIS

urlencode(string)

DESCRIPTION

This function is to to encode a string The parameters are encoding according to http://en.wikipedia.org/wiki/Percent-encoding for application/x-www-form-urlencoded type.

RETURN

The encoded string.

EXAMPLES

Note: In the followings examples, the _ between the { should be removed to make it work.

res={_{urlencode(' ?&');}}. return res=+%3F%26.

SEE ALSO

{{ include("includes/strings.sn") }}

AUTHOR

Written by Pierre Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.