javascript - Trying to insert in-line HTML to iframe srcdoc tag -


i have array filled html contents want, way map each of contents proper iframe.

here chunk of code using

function replaceframes(docelement) {     array.prototype.foreach.call(docelement.queryselectorall("iframe, frame"), function (node) {          var name = node.getattribute("name");          var blah = singlefile.test[name];          node.setattribute("srcdoc",blah);     }); } 

the docelement parameter standard dom element

i use jquery, feel wont able modify want, since dont have access document, specific element/node.

the problem is, in output document have "&gt'; , &lt'; instead of tags (ignore quotes there, make pop up.)


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -