Hello,
The share buttons for Twitter and Whatsapp work fine on all content except articles with quotes (") in their name, it mess up totally the code and the title is not added to the tweet of in the whatsapp message.
Is there a way to clean the title and change the quotes to a character that doesn't mess the code or just remove them so the title il added to the tweet or whatsapp message ?
Thank you
Regards

Comments

marcoconut created an issue. See original summary.

marcoconut’s picture

Status: Active » Fixed

Hello,
If anyone have the same problem i've found a fix that work for those special characters.
In the social_share_counter.module file under the "Internal function to generate code for Social Share Counter buttons." block
change this line :
$data['title'] = $link_name;
to
$data['title'] = htmlspecialchars($link_name, ENT_QUOTES, 'UTF-8');

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.