Quote

We're also available for Custom Joomla Development

Hire us now

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
       
  • Replied by admin on Saturday, November 18 2017, 05:33 AM · Hide· #1
    Hi Robb,
    Hmm ok glad it works for you
    Thanks
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  •  
    Replied by schemedia on Friday, November 17 2017, 04:38 PM · Hide· #2
    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
Your Response
Please login first in order for you to submit comments