mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-25 02:04:40 +00:00
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