DEV Community

Victor Osório
Victor Osório

Posted on • Edited on

Bug on dev.to: ampersand not escaped on twitter share

Open this post and try to share it using Twitter.
It will open a tab with a tweet "101 Tips For Being A Great Programmer ( instead of "101 Tips For Being A Great Programmer (& Human)" by @EmmaWedekind #DEVcommunity https://dev.to/emmawedekind/101-tips-for-being-a-great-programmer-human-36nl.

Why? Because ampersand is not escaped:

https://twitter.com/intent/tweet?text=%22101%20Tips%20For%20Being%20A%20Great%20Programmer%20(&%20Human)%22%20by%20@EmmaWedekind%20%23DEVcommunity%20https://dev.to/emmawedekind/101-tips-for-being-a-great-programmer-human-36nl
Enter fullscreen mode Exit fullscreen mode

I just replaced & by %26 and work it:

https://twitter.com/intent/tweet?text=%22101%20Tips%20For%20Being%20A%20Great%20Programmer%20(%26%20Human)%22%20by%20@EmmaWedekind%20%23DEVcommunity%20https://dev.to/emmawedekind/101-tips-for-being-a-great-programmer-human-36nl
Enter fullscreen mode Exit fullscreen mode

Top comments (2)

Collapse
 
rhymes profile image
rhymes

Hi, thanks for the find. Can you open a issue ticket on the repository? So this doesn't get lost...

github.com/thepracticaldev/dev.to/...

Collapse
 
vepo profile image
Victor Osório