From 801ed5ed85a531078abbde4dc2d0ba3efe30f078 Mon Sep 17 00:00:00 2001 From: Jacob Strieb Date: Fri, 15 May 2020 01:17:25 -0400 Subject: [PATCH] Fix accidental, error-causing removal --- editor/editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/editor.js b/editor/editor.js index 1199162..b978bb0 100644 --- a/editor/editor.js +++ b/editor/editor.js @@ -112,7 +112,7 @@ function update() { "html" : document.getElementById("html").value }; - var html = getHTML(data); + var html = encodeURIComponent(getHTML(data)); // Save encoded page data to the URL window.location.hash = "#" + b64.encode(JSON.stringify(data)); @@ -124,5 +124,5 @@ function update() { document.getElementById("downloadLink").href = `data:text/html,${html}` // Update the