Twitter Share Text= - How to add ' sign?


#1

Hiya Everyone,

I’m having problems adding a sign to my twitter share text for my button, when I add the symbol, the pop-up no longer works.

Best Regards,
Tim


#2

Apply URL encoding to your passed parameters.

jane's puppy

becomes

jane%27s%20puppy

#3

Thank you! Do I need to replace all spacing with %20?


#4

Yes, you should percent encode the space.


#5

Should this be the same with meta tags too?


#6

Convert the special entities in a HTML attribute such as quotes, apostrophes, ampersands, and greater than or less than signs using their HTML entity equivalent.

Helper in PHP:
http://php.net/htmlspecialchars


#7