Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 311 Bytes

README.md

File metadata and controls

14 lines (8 loc) · 311 Bytes

iframify

Wraps the given HTML code in an iframe that resizes dynamically to fit its contents.

Useful for displaying embeds that use <script> tags without exposing your page to foreign code.

Usage:

var iframe = iframify('<h1>Hello, World</h1>');
document.body.appendChild(iframe);