alex-meteor / iframify

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

About

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


Languages

Language:JavaScript 93.5%Language:Makefile 6.5%