diff --git a/frontend/components/TreeView.js b/frontend/components/TreeView.js index 48ae5ddedd..ccd1645b63 100644 --- a/frontend/components/TreeView.js +++ b/frontend/components/TreeView.js @@ -199,8 +199,9 @@ export const TableView = ({ mime, body, cell_id, persist_js_state }) => { ` } -export let DivElement = ({ cell_id, style, classname, children, persist_js_state = false }) => { - const mimepair_output = (pair) => html`<${SimpleOutputBody} cell_id=${cell_id} mime=${pair[1]} body=${pair[0]} persist_js_state=${persist_js_state} />` +export let DivElement = ({ cell_id, style, classname, children, persist_js_state = false, sanitize_html = true }) => { + const mimepair_output = (pair) => + html`<${SimpleOutputBody} cell_id=${cell_id} mime=${pair[1]} body=${pair[0]} persist_js_state=${persist_js_state} sanitize_html=${sanitize_html} />` return html`
${children.map(mimepair_output)}
` } diff --git a/src/runner/PlutoRunner.jl b/src/runner/PlutoRunner.jl index fdc891be03..6cce83afa7 100644 --- a/src/runner/PlutoRunner.jl +++ b/src/runner/PlutoRunner.jl @@ -2401,6 +2401,7 @@ function Base.show(io::IO, m::MIME"text/html", e::EmbeddableDisplay) const display = create_new ? currentScript.previousElementSibling : this; display.persist_js_state = true; + display.sanitize_html = false; display.body = body; if(create_new) { // only set the mime if necessary, it triggers a second preact update