diff options
Diffstat (limited to 'js/lib/common.js')
-rw-r--r-- | js/lib/common.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/lib/common.js b/js/lib/common.js index 05640e3..06486d3 100644 --- a/js/lib/common.js +++ b/js/lib/common.js @@ -1,5 +1,7 @@ "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});"; @@ -35,7 +37,7 @@ var unescapeString = function(s) { var normalizeURI = function(uri) { return encodeURI(unescape(uri)); -} +}; var replaceUnsafeChar = function(s) { switch (s) { @@ -66,5 +68,5 @@ var escapeXml = function(s, preserve_entities) { module.exports = { unescapeString: unescapeString, normalizeURI: normalizeURI, - escapeXml: escapeXml, + escapeXml: escapeXml }; |