diff --git a/public/assets/js/bridge/rte-editor.js b/public/assets/js/bridge/rte-editor.js index 8c814b5..31aaa8b 100644 --- a/public/assets/js/bridge/rte-editor.js +++ b/public/assets/js/bridge/rte-editor.js @@ -56,10 +56,14 @@ } }); if (doc.body && doc.body.innerHTML !== undefined) { - html = `${doc.body.innerHTML}`; + html = doc.body.innerHTML; } } } catch {} + if (html) { + const bodyMatch = html.match(/]*>([\s\S]*?)<\/body>/i); + if (bodyMatch) html = bodyMatch[1]; + } return html; }