On Sun, 11 Sep 2011 10:21:48 -0400, Michael A. Puls II <shadow2...@gmail.com> wrote:

Encoding the data (markup for example) for the data URI is simple. Just use encodeURIComponent(markup) (on a UTF-8 page) in JS on the data. You still hand-author the markup. You just paste the markup into a textarea and have something (like encodeURIComponent()) percent-encode it for you.

For example, <http://shadow2531.com/js/create_data_uris.html>. (I'll make one for files with the File API at a later date.)

--
Michael

Reply via email to