DEV Community

Victor Osório
Victor Osório

Posted on • Edited on

2 2

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

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

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

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay