mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
fix sanitizing bug in Code block
This commit is contained in:
@@ -14,7 +14,7 @@ var md = markdownit({
|
||||
return hljs.highlight(lang, str).value
|
||||
} catch (e) {}
|
||||
}
|
||||
return str
|
||||
return str.replace(/\&/g, '&').replace(/\</g, '<').replace(/\>/g, '>').replace(/\"/g, '"')
|
||||
}
|
||||
})
|
||||
md.use(emoji, {
|
||||
|
||||
Reference in New Issue
Block a user