Iframe src html content

This chrome example extension:
in feed.html creates html to assign to src attribute of iframe:

 desc.src="data:text/html," + iframe_src + itemDesc + "";

But if You try this there is problem with encoding within IFRAME, at least for everything else than ASCII...

To sole this I recommend reading:
Especially: http://www.ietf.org/rfc/rfc2397.txt

Finally, fix looks like this:
desc.src="data:text/html;charset=\"UTF-8\"," + iframe_src + itemDesc + "";


Popular posts from this blog

How to simulate slow connection (developer proxy in Node.js)

How to use NPM packages from private repositories on bitbucket