Created
February 9, 2017 11:30
-
-
Save steveobbayi/74390e73262fb7fdb4daeb4032c0406c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.write('data:text/html;charset=utf-8,' + | |
// Escape for the URI | |
encodeURIComponent( | |
'<div>'+ | |
'<p>An encoded paragraph</p>'+ | |
'</div>' | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment