Skip to content
Permalink
Browse files

fix: need to escape twice

  • Loading branch information...
ulivz committed Apr 5, 2019
1 parent 1e47187 commit 923b31a801ecf1a8d12047424424d8c8e0dfe0e0
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/html.js
@@ -68,7 +68,7 @@ function highlight($) {
function escapeHTMLTagInCode($) {
$('code').replaceWith((i, el) => {
const content = $(el).text()
return `<code>${escape(content)}</code>`
return escapeHtml(`<code>${escapeHtml(content)}</code>`)
})
return $
}

0 comments on commit 923b31a

Please sign in to comment.
You can’t perform that action at this time.