diff --git a/lib/upload.js b/lib/upload.js index 053a492..d835b81 100644 --- a/lib/upload.js +++ b/lib/upload.js @@ -372,8 +372,9 @@ Upload.removeCacheBusters = function removeCacheBusters(indexPath) { log.debug('Removing cachebusting ', indexPath); var indexHtml = fs.readFileSync(indexPath, 'utf8'); - var $ = cheerio.load(indexHtml); - var urlObj; + var $ = cheerio.load(indexHtml, { decodeEntities: false }); + var index, + urlObj; try {