From 41bb633940496e5ca5559411b073026934ae7244 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sat, 22 Sep 2018 20:11:35 -0600 Subject: [PATCH] Escape double quotes ("") in sw-text (fix #34) --- static/js/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/editor.js b/static/js/editor.js index 7179510..c8c6edc 100644 --- a/static/js/editor.js +++ b/static/js/editor.js @@ -74,7 +74,7 @@ $(document).ready(function () { }); $(".sw-text").each(function () { - var text = $(this).text().trim(); + var text = $(this).text().trim().replace(/"/g, """); var component = $(this).data("component"); $(this).html(""); $(this).closest("a").removeAttr("href"); // Issue #33