I am actually getting the html template dynamically on the fly, so my concern is how would I be able to append the html code to an iframe's src.
I followed up with some other question in the community and I could make jsFiddle , this is working fine for a single line of html template like
<html><head><title></title></head><body><h1>Hello world.</h1></body></html>
but when I a trying to add the little long length html template then the template is showing out of the iframe ,please check here .