unescape. Decoding from JavaScript or URI   [3.4.4]

^string:unescape[js|uri;encoded]
^string:unescape[
js|uri;encoded;options]

Note: this is method, not a constructor!


With
js parameter this method is equivalent to ^string:js-unescape[...] method and does the transformation similar to unescape function described in ECMA-262.
You can decode strings which were escaped in browser by JavaScript function escape.

With
uri parameter method decodes URI-encoded (percent-encoded) string. You can decode $request:uri as an example.

Supported options:


Default
Description
$.charset[encoding name]
undefined
Ather decoding the result will be translated from the specified charset to the server's charset.




Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 23.04.2016