1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

fix sanitizing bug in Code block

This commit is contained in:
Rokt33r
2016-01-21 05:50:40 +09:00
parent 81441a0895
commit 01c9d62a2b

View File

@@ -14,7 +14,7 @@ var md = markdownit({
return hljs.highlight(lang, str).value return hljs.highlight(lang, str).value
} catch (e) {} } catch (e) {}
} }
return str return str.replace(/\&/g, '&amp;').replace(/\</g, '&lt;').replace(/\>/g, '&gt;').replace(/\"/g, '&quot;')
} }
}) })
md.use(emoji, { md.use(emoji, {