Closed (fixed)
Project:
Social Share Counter
Version:
7.x-1.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
14 Feb 2019 at 22:17 UTC
Updated:
5 Mar 2019 at 22:19 UTC
Jump to comment: Most recent
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
Comment #2
marcoconut commentedHello,
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');