From bbada40859793e7885dec7896448e99afefa8efe Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Thu, 23 Jun 2016 14:59:38 -0500 Subject: [PATCH] Merge pull request #60 from jarodms6/master ionic upload and package are tampering with index.html --- lib/upload.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 {