Fixed prevent XSS might break lots of tags and only need after rendered
This commit is contained in:
@@ -31,6 +31,8 @@
|
||||
<script src="/vendor/reveal.js/lib/js/head.min.js"></script>
|
||||
<script src="/vendor/reveal.js/js/reveal.js"></script>
|
||||
<script src="/vendor/string.min.js"></script>
|
||||
<script src="/vendor/xss/dist/xss.min.js"></script>
|
||||
<script src="/js/render.js"></script>
|
||||
|
||||
<script>
|
||||
var body = $(".slides").html();
|
||||
@@ -53,7 +55,7 @@
|
||||
var deps = [
|
||||
{ src: '/vendor/reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
|
||||
{ src: '/vendor/reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector('[data-markdown]'); } },
|
||||
{ src: '/vendor/reveal.js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector('[data-markdown]'); } },
|
||||
{ src: '/js/reveal-markdown.js', condition: function() { return !!document.querySelector('[data-markdown]'); } },
|
||||
{ src: '/vendor/reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
|
||||
{ src: '/vendor/reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
|
||||
{ src: '/vendor/reveal.js/plugin/math/math.js', async: true }
|
||||
|
||||
Reference in New Issue
Block a user