Tuesday, 15 January 2013

html - Twitter decode share url when sharing -



html - Twitter decode share url when sharing -

when using twitter share url, have following:

https://twitter.com/intent/tweet?text=hello+world&url=http%3a%2f%2fwww.google.com%2fmaps%23hello

this result in tweet following:

hello world http://www.google.com/maps#hello

is possible me maintain '%23' relative url. have:

hello world http://www.google.com/maps%23hello

thanks.

use %25 encode "%"

https://twitter.com/intent/tweet?text=hello%20world &url=http://www.google.com/maps%2523hello

so "%2523" create %23

html facebook twitter social

No comments:

Post a Comment