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 (