When the page's title contains special characters like single quote ("Company's Campaign"), the og:title meta tag output by the module double-escapes those special characters, which makes the title appear as "Company's Campaign" on Facebook. The attached patch fixes this by HTML-decoding the page title received from drupal_get_title().

CommentFileSizeAuthor
title-html-entities.patch555 bytesjamix
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

iSoLate’s picture

Tested it and it works.

iSoLate’s picture

Status: Needs review » Reviewed & tested by the community

Code looks good too.

iSoLate’s picture

Status: Reviewed & tested by the community » Needs work

Doesn't work with quotes.

iSoLate’s picture

Status: Needs work » Reviewed & tested by the community

It does work, never mind previous comment.

iSoLate’s picture

Issue summary: View changes

Grammar fix.