diff --git a/src/modules/blocks/RenderHtml.tsx b/src/modules/blocks/RenderHtml.tsx
index b6a7fd29e..3638dbd66 100644
--- a/src/modules/blocks/RenderHtml.tsx
+++ b/src/modules/blocks/RenderHtml.tsx
@@ -16,44 +16,59 @@ export function heuristicIsBlockTextHTML(text: string): boolean {
return [' text.startsWith(start));
}
+const simpleCssReset = `
+*, *::before, *::after { box-sizing: border-box; }
+body, html { margin: 0; padding: 0; }
+body { min-height: 100vh; line-height: 1.5; -webkit-font-smoothing: antialiased; }
+img, picture, svg, video { display: block;max-width: 100%; }
+`;
+
+function renderHtmlInIFrame(iframeDoc: Document, htmlString: string) {
+ // Note: not using this for now (2024-06-15), or it would remove the JS code
+ // which is what makes the HTML interactive.
+ // Sanitize the HTML string to remove any potentially harmful content
+ // const sanitizedHtml = DOMPurify.sanitize(props.htmlString);
+
+ // Inject the CSS reset
+ const modifiedHtml = htmlString.replace(/