From f4b30f7d5d38b1a401a4a27bb581ee34adf35c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20Bl=C3=A4ttermann?= Date: Thu, 17 Nov 2022 17:53:59 +0100 Subject: [PATCH] Remove ability to inline HTML content in iFrames --- website/src/components/embed.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/website/src/components/embed.js b/website/src/components/embed.js index a6050443c..4b3295c74 100644 --- a/website/src/components/embed.js +++ b/website/src/components/embed.js @@ -57,18 +57,12 @@ SoundCloud.propTypes = { color: PropTypes.string, } -function formatHTML(html) { - const encoded = encodeURIComponent(html) - return `${encoded}` -} - -const Iframe = ({ title, src, html, width = 800, height = 300 }) => { - const source = html ? `data:text/html,${formatHTML(html)}` : src +const Iframe = ({ title, src, width = 800, height = 300 }) => { return (