Created
May 15, 2012 21:11
-
-
Save dayyan/2705175 to your computer and use it in GitHub Desktop.
Pinterest urls in Javascript
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
/* Pinterest urls need to be URI encoded, then URI component encoded. | |
*/ | |
replace('{shareUrl}', escape(shareObj.shareUrl)).replace('{imageUrl}', encodeURIComponent(encodeURI(shareObj.imageUrl))).replace('{shareText}', escape(shareObj.shareText)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment