diff --git a/public/js/extra.js b/public/js/extra.js index bc6092db2..1dd1d5565 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -476,10 +476,10 @@ function finishView(view) { var code = ""; if (codeDiv.length > 0) code = codeDiv.html(); else code = langDiv.html(); - code = md.utils.unescapeAll(code); + code = S(code).unescapeHTML().s; if (!reallang) { var result = { - value: md.utils.escapeHtml(code) + value: S(code).escapeHTML().s }; } else if (reallang == "tiddlywiki" || reallang == "mediawiki") { var result = {