Skip to content Skip to sidebar Skip to footer

Deprecation Of Javascript Function Unescape()

According to W3 Schools the unescape() JavaScript function has been deprecated. The site states, 'The unescape() function was deprecated in JavaScript version 1.5. Use decodeUR

Solution 1:

According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/unescape you should update your old scripts:

This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.

A Quick Fix?

Fixing it could be as simple as dropping a line into your JS to add in an unescape() method if one doesn't exist.

window.unescape = window.unescape || window.decodeURI;

Post a Comment for "Deprecation Of Javascript Function Unescape()"