아! HTML이 생성되는 방식을 완전히 오해했네요. 사용자가 HTML을 미리 생성한다면, 도메인이 화이트리스트에 등록된 외부 사이트에서 iframe으로 가져오도록 할 수 있습니다.
예를 들어, 기본적으로 허용되어야 하는 codepen:
<iframe height="300" width="800" style="width: 100%;" scrolling="no" title="mplD3 example, actually working" src="https://codepen.io/gully/embed/BawMGr?default-tab=result" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
See the Pen <a href="https://codepen.io/gully/pen/BawMGr">
mplD3 example, actually working</a> by gully (<a href="https://codepen.io/gully">@gully</a>)
on <a href="https://codepen.io">CodePen</a>.
</iframe>