From 5f6a53eae10d7d38f113b6648c22e6372fbda51c Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 20 Feb 2016 21:44:50 +0000 Subject: [PATCH] Fix typo from 4a03dcab2031a31eb60f99b6d15a70ff0449182c --- core/modules/utils/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/utils/utils.js b/core/modules/utils/utils.js index 08aac62fd..2e29a8891 100644 --- a/core/modules/utils/utils.js +++ b/core/modules/utils/utils.js @@ -383,7 +383,7 @@ exports.htmlEncode = function(s) { // Converts all HTML entities to their character equivalents exports.entityDecode = function(s) { - var converter = String.fromCodePoint || String.fromCharCode; + var converter = String.fromCodePoint || String.fromCharCode, e = s.substr(1,s.length-2); // Strip the & and the ; if(e.charAt(0) === "#") { if(e.charAt(1) === "x" || e.charAt(1) === "X") {