Fix the < and > symbols are doubly escaped which affected by executing preventXSS twice
This commit is contained in:
parent
f2743ff8f8
commit
fe384d80bf
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,8 @@ const slideOptions = {
|
||||||
const slides = RevealMarkdown.slidify(body, slideOptions)
|
const slides = RevealMarkdown.slidify(body, slideOptions)
|
||||||
$('.slides').html(slides)
|
$('.slides').html(slides)
|
||||||
RevealMarkdown.initialize()
|
RevealMarkdown.initialize()
|
||||||
|
// fix < and > were doubly escaped
|
||||||
|
$('.slides')[0].innerHTML = $('.slides')[0].innerHTML.replace(/&lt;/g, '<').replace(/&gt;/g, '>')
|
||||||
removeDOMEvents($('.slides'))
|
removeDOMEvents($('.slides'))
|
||||||
$('.slides').show()
|
$('.slides').show()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue