From 18eebe51d843c9b53c43dada6d05b8234fad6108 Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Sun, 21 May 2017 23:02:43 +0530 Subject: [PATCH] fix messing utf16 emoji chars while exporting to codepen. fixes #117 --- src/script.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/script.js b/src/script.js index 36b0b09..5e3f339 100644 --- a/src/script.js +++ b/src/script.js @@ -1440,9 +1440,7 @@ runBtn, searchInput, consoleEl, consoleLogEl, logCountEl if (!currentItem.title.match(/Untitled\s\d\d*-\d/)) { json.title = currentItem.title; } - json = JSON.stringify(json) - .replace(/"/g, "&​quot;") - .replace(/'/g, "'") + json = JSON.stringify(json); codepenForm.querySelector('input').value = json; codepenForm.submit(); trackEvent('ui', 'openInCodepen');