The percentescape( function encodes specified characters using percent encoding.
Parameters
This function has two parameters:text – is the item of text that you want to encode.
escapelist – specifies what characters should be encoded using percentage notation. (Note: Normally, the first character specified should be the % character.).
Description
The percentescape( function encodes specified characters using percent encoding. You specify exactly what kinds of characters you want to be escaped. In this example three characters will be escaped: percent signs, commas and spaces.
percentescape("red, green, blue","%, ") ☞ red%2C%20green%2C%20blue
See Also
History
Version | Status | Notes |
10.0 | New | New in this version. |