summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/lib/common.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/lib/common.js b/js/lib/common.js
index 06486d3..6481c68 100644
--- a/js/lib/common.js
+++ b/js/lib/common.js
@@ -1,7 +1,5 @@
"use strict";
-/* global unescape */
-
var entityToChar = require('./html5-entities.js').entityToChar;
var ENTITY = "&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});";
@@ -36,7 +34,7 @@ var unescapeString = function(s) {
};
var normalizeURI = function(uri) {
- return encodeURI(unescape(uri));
+ return encodeURI(decodeURI(uri));
};
var replaceUnsafeChar = function(s) {