From a0bb459dfbde00455a6c6531447539a5dc811419 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Mon, 30 Oct 2023 14:06:49 +0100 Subject: [PATCH] fix safe preview in ExperimentalLayout --- frontend/components/TreeView.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)}
` }