修复编辑器html注释注入

This commit is contained in:
augushong
2020-08-27 10:23:02 +08:00
parent ba6342d3d2
commit f9bed58699

View File

@@ -120,7 +120,7 @@
<div id="editor" style="height: 600px;">
</div>
<div id="content" style="display: none;">{:json_encode($post->content)}</div>
<div id="content" style="display: none;">{:base64_encode(json_encode($post->content))}</div>
</div>
</div>
@@ -298,9 +298,8 @@
});
console.log(JSON.parse($('#content').text()));
quill.setContents(JSON.parse($('#content').text()))
quill.setContents(JSON.parse(window.atob($('#content').text())))
quill.on('selection-change', function (range, oldRange, source) {
if (range) {