Hi, in the last episode https://ladybug.dev/episode/javascript-frameworks/ when I click the twitter share button it cuts off the title because of the '&' characters in the title of this episode. See image below.
I added this encodeURIComponent(shareTitle) function to change the characters to the correct url friendly values. Initially I thought shareTitle.replace(/&/g,'%26') would be fine but what about other characters in titles like hash tags and etc.
Hi, in the last episode https://ladybug.dev/episode/javascript-frameworks/ when I click the twitter share button it cuts off the title because of the '&' characters in the title of this episode. See image below.
I added this encodeURIComponent(shareTitle) function to change the characters to the correct url friendly values. Initially I thought shareTitle.replace(/&/g,'%26') would be fine but what about other characters in titles like hash tags and etc.
After the fix