Last active
April 12, 2017 01:21
-
-
Save gusanthiago/93daf632ddd6636c9e18879846f557e3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* b64 | |
* @description - converte texto ou objeto para base64 | |
* | |
* @param {Object[]} - objeto DOM de entrada | |
* | |
* @return base64 do grafico | |
*/ | |
var b64 = function(obj){ | |
var str = obj.html(); | |
return btoa(unescape(encodeURIComponent(str))); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment