mirror of https://github.com/status-im/codimd.git
Fix the < and > symbols are doubly escaped which affected by executing preventXSS twice
This commit is contained in:
parent
f2743ff8f8
commit
fe384d80bf
|
@ -55,6 +55,8 @@ const slideOptions = {
|
|||
const slides = RevealMarkdown.slidify(body, slideOptions)
|
||||
$('.slides').html(slides)
|
||||
RevealMarkdown.initialize()
|
||||
// fix < and > were doubly escaped
|
||||
$('.slides')[0].innerHTML = $('.slides')[0].innerHTML.replace(/&lt;/g, '<').replace(/&gt;/g, '>')
|
||||
removeDOMEvents($('.slides'))
|
||||
$('.slides').show()
|
||||
|
||||
|
|
Loading…
Reference in New Issue