Social Meta adding & in OG title tags

Hello
I am getting strange behavior with the Social Meta extension where if I have an instance of '&' in my article title, the OG title strips that out and replaces it with '&' - It doesn't happen on the Twitter OG title though.

Thanks
Robb
7 years 1 month ago #1 by schemedia

Please Log in or Create an account to join the conversation.

Actually, I just fixed this, but you may want to implement it into your code:
$doc->setMetaData( 'og:title', htmlspecialchars_decode($title), 'property');
$doc->setMetaData( 'name', htmlspecialchars_decode($title) );

Thanks
Robb
7 years 1 month ago #2 by schemedia

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5263) Offline
Hi Robb,
Hmm ok glad it works for you
Thanks
7 years 1 month ago #3 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum