import React from "react"; function stripScriptsAndIframes(html: string) { // Basic safety + SEO: ensure CMS HTML is visible to crawlers, but drop scripts/iframes. // This is not a full HTML sanitizer; content is assumed to be authored by trusted admins. return html .replace(/)<[^<]*)*<\/script>/gi, "") .replace(/)<[^<]*)*<\/iframe>/gi, ""); } export default function ServerHtmlRenderer({ html }: { html: string }) { const safeHtml = stripScriptsAndIframes(html || ""); return (
); }