brokensite
Member
Posted 4 months ago #
special characters in title and description are not transformed :
$output .= "<meta property='og:title' content='" . htmlspecialchars($title) . "' />";
$output .= "<meta property='og:description' content='" . htmlspecialchars($description) . "' />";
like
content='Saunier Duval : fabricant d'appareils de chauffage et la chaudière à gaz' />
http://wordpress.org/extend/plugins/jw-player-plugin-for-wordpress/
brokensite
Member
Posted 4 months ago #
or :
<meta property='og:description' content=' fabricant d'appareils de chauffage ' />
@brokensite,
This is definitely a bug. I'll look into addressing this in the next release.
Thanks.
brokensite
Member
Posted 3 months ago #
Thanks for your response, I have tried to modify that but it did not work.
As I have mention above content='" . htmlspecialchars($title) . "'
doesn't really transform and that has a negative impact on SEO and sharing.
Do you have any suggestion to modify the output ?
Thanks
@brokensite,
Did htmlspecialchars($title) work for you? I'm not sure this would affect the SEO since escaping values in HTML is pretty standard.
Have you tried escaping the apostrophe with slashes?
Thanks.