I have a script which is purely JS which takes code and inserts it into an iframe: var html = \"<p>Some <strong>HTML</strong> to insert</p>\"