diff options
author | Wu Cheng-Han | 2016-10-23 16:30:09 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-10-23 16:30:09 +0800 |
commit | 67786a8aab2c2d0265144cb960540c629d2465f3 (patch) | |
tree | 73b77dacbe1186826a1c2c0808c051c7ac02cf42 /public/js | |
parent | 27bc94744dbfdf64717f5f18fbba2dcf931a0a5d (diff) |
Fix code block syntax highlighting might not process properly because the HTML is escaped
Diffstat (limited to '')
-rw-r--r-- | public/js/extra.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index bc6092db..1dd1d556 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 = { |