unescape

Decodes string from UTF-8 or a Unicode character set. Substitutes the native unescape function, which should not be used according to the recommendations of the ECMA-262 standard.

Example

<script>
    var result = kendo.unescape("This is a test: %97 %3f %D5 %e5 %U0107 %U123F %u39f5 %uDEe5");
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(result);

    var second = kendo.unescape("This is a test: %D1%88%D0%B5%D0%BB%D0%BB%D1%8B");
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(second);
</script>

Parameters

value String

The string that needs to be unescaped (decoded).

Returns

String The unescaped (decoded) string.

In this article